Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
Videos stop playing on mobile, browser thinks that the video is still playing

The problem:

On my website mrgigi.me, I have 3 videos that start playing once the videos are visible in the viewport with javascript's .play()/.pause() API.

However, after a few seconds of playing the videos they all freeze on a frame. Checking in the console if the videos are paused with videoID.paused, returns the boolean false.

Meaning that the browser still thinks that the video is playing without any problems.

Using the play/pause buttons also do not work after the video freezes.


A few things to be noted:

  • This only happens on mobile, on desktop it works perfectly fine.
  • I am using an iPhone 13 Pro on, at the time of writing, iOS 15.4.1
  • I tried different mobile browsers which include:
    1. The default browser, Safari
    2. DuckDuckGo Browser
    3. Brave Browser
  • This only happens when the website is deployed/hosted (so going to the website's domain). It works perfectly fine when using a local server like Live Server
  • For hosting, I'm using Firebase and Cloudflare

All the code can be found on the GitHub repository: DarthGigi/mrgigi.me


Here are a few videos demonstrating the issue:

  1. Video showing the bug
  2. Video showing the console output

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It seems like there was nothing wrong with the code but with the hosting platform I was using, Firebase.

I do not know what the problem exactly was with Firebase, so I switched to Vercel (GitHub Pages would have fixed it too).

Thanks to Jack Latimer for helping me find the cause of the problem and also providing a fix for it!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!