Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

98
Vistas
how to play inline video more than once in ios safari when in low power mode

iOS safari appears to limit inline videos to play just once when in lower power mode, even if you try to play the video in response to a user interaction. You can test this to see:

document.querySelector('video').addEventListener('click', e => {
  e.target.play().then(() => alert('played after click')).catch(err => alert(`failed to play after click: ${JSON.stringify(err)}`));
});
<video src='https://media.tenor.com/videos/01faecfbc10705494038b7541e6d8756/mp4' autoplay playsinline></video>

When low power mode is OFF, you can tap the video and it always plays each time (you'll see an alert each time you tap and it plays). However, when low power mode is ON, only your first tap will play the video and show the alert. Subsequent taps do nothing, not even triggering the .catch handler I put on the .play() call.

How can I fix this? Note that even though the autoplay attribute is present on the video, I don't mind that it doesn't autoplay when low power mode is on. I do need it to always play when the video is clicked.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda