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

161
Vistas
How to autoplay the saavan link in html audio tag?

I have welcome.html file in that i have one audio tag inside that source attribute i am adding link from the jio-saavan but it's not playing when the webpage is opened but in console i am getting following error..

Error on console

welcome.html:28 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
<audio  autoplay id="my_audio">
  <source src="https://docs.google.com/uc?export=download&id=11wfYWiukbIZJQnDL385jQs2SGQA5ESbL" type="audio/mpeg">
</audio>
<script>
document.getElementById('my_audio').play();
</script>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The error is telling you clearly that you can't start an audio (or even a video if not muted) if the user haven't interacted with the page before.

Some links to better help you understand the policy on autoplay:

  • https://developer.chrome.com/blog/autoplay/
  • https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/
  • https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide#autoplay_availability
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