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

310
Views
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 answers
Answer question

0

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

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