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

209
Views
Can't play downloaded audio file in the HTML5 audio file

Current approach is just download the mp3 file from backend side (Laravel 8/BinaryFileResponse).

My JS code :

axios.post(baseUrl + '/api/audio', payload, {
    headers: {
        'Content-Type': 'application/json',
    }
}).then(response => {
    theTrack = response.data.value;
    const blob = new Blob([theTrack], {type: "audio/mpeg"});
    let urlCreator = window.URL || window.webkitURL;
    audio[0].src = urlCreator.createObjectURL(blob); 
    audio[0].load();
    audio[0].play();
});

Chromium console has :

Uncaught (in promise) DOMException: Failed to load because no supported source was found.

Binary should be fine since I can play it from the Network panel.

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!