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

319
Vistas
Chrome can't play audio after currentTime is changed

I am running the following code in Chrome:

audioEl = document.getElementById('#mySound');
audioEl.play();

Then half way through the sound playing back I'm running this code:

audioEl.pause();
audioEl.currentTime = 0;
audioEl.play();

The result is that the last call to play() returns a pending promise that never returns until I call pause() again, at which point the promise is rejected with The play() request was interrupted by a call to pause()..

The same code works fine on Firefox and I can't see any logical problems with it. Is there a way around this? Is there something I'm missing?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Looks like this is a problem with OGG files. MP3 works fine.

about 4 years ago · Juan Pablo Isaza Denunciar
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