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

110
Visualizações
How to make click/tap to play or pause video work the same on desktop and mobile browsers

On my site, when viewed on a desktop browser, clicking on a video will play or pause that video. However, on mobile browsers, the behavior is very inconsistent. Clicking or tapping on a video will only sometimes start it, and never pause it. Oddly, this inconsistent behavior happens even when simulating a mobile browser in the desktop browser's developer mode!

How can I get consistent click-to-play/pause behavior on all devices and platforms? I want a click/tap to always play a paused video, and always pause a playing video.

I am using a combination of some html5 video elements and some video elements wrapped via video.js. I need a solution that will work for both types. All videos show controls, if that matters. I'm aware that there are 2 or 3 fairly similar questions on SE, but they are all very old and none have answers that appear to work in 2022.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There are plenty of alternative jquery/html5 solutions you could try https://www.jqueryscript.net/tags.php?/Video%20Player/
but it might be worth looking at the videojs GitHub issues for some ideas on how to fix your issue https://github.com/videojs/video.js/issues/975

I hope this is of some help

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