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

190
Views
audio.play() promise sometimes not resolving

I have the problem that sometimes the promise is neither resolved nor the catch method is called when I frantically click a play button several times. I.e. I don't get any feedback from the promise at all. The first few clicks always work, but latter one it seems to get stuck.

My code looks like this:

let promise = audio.play();
promise.then(function(){
    console.log('resolved');
}).catch(function(error){
    console.error(error);
);
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!