Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

248
Views
¿Por qué esta reproducción de audio () falla en iOS 14?

He visto ¿Por qué no puedo JavaScript .play() archivos de audio en iPhone safari? y sé que se requiere una interacción del usuario antes de reproducir un objeto de audio. Sin embargo, esto no funciona en iOS 14:

 <div id="a">Click here</div> <script> var audio = new Audio('a.mp3'); audio.load(); document.getElementById('a').onclick = function() { audio.pause(); // always restart the sound, see https://stackoverflow.com/a/13243338 audio.currentTime = 0; audio.play(); } </script>

Con este código, no se produce ningún sonido al hacer clic/tocar el <div> , con un iPhone en iOS 14.

¿Cómo resolver esto?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!