Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

132
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda