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

359
Views
NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission

I have this audio element on my page :

 <audio id="splayer" controls="controls" class="audiocontrol" >
 <source src='{{ baseUrl}}storage/{{src}}' />
 </audio>

    start_audio()
    {  

      var player = <HTMLAudioElement> document.querySelector('#splayer');
      player.load();
      var promise = player.play();


      if (promise !== undefined) {
        promise.then(_ => {
          
        }).catch(error => { console.log('error');
          console.log(error)
        });
      }
    }

This is working on chrome and firefox but getting this error on Safari :

NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission

There is a modal which loads at the initial page load and user clicks on allow button to give permission :

   <button class="btn micallowbtn" data-dismiss="modal">Allow</button>

This works on chrome but getting error on safari.

Any solution to resolve this issue on Safari

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!