Jump to content

Recommended Posts

Posted
Can anyone help me fix this problem " Uncaught (in promise) DOMException: Unable to decode audio data " every time i want looping my audio using this js " https://howlerjs.com/ " the audio won't to play but it will be download and this error always appear, how i can fix this problem ?

Posted

That error usually means the browser can't understand the audio file format (Chrome used to be known to have issues with certain ones like OGG), or that the audio file being played is corrupt.

 

Have you tried a different audio file and different browser?

Posted

I've used different audio like mp3, ogg, and wav but the result is the same, and I tried using different browser but the error still looks the same, if the audio is corrupt, i can not play it for my website now, but i can still play it with manual javascript looping (not howler js) but it does not work for mobile, only howler js that support loooping on the mobile

Posted

Nope, still not working, i have been re-decode my audio with Audacity but the error still appear

Posted

Googling seems to suggest people beyond the ones in that bug report are also having these problems with howler.js...

 

Have you tried using a different library?

Posted

I'm recommending you replace howler.js with something else and see if it works (the error is related to how howler's audio output is handled by your browser).

 

It's not the only javascript out there that can do what you're asking, so try a different script and see if it performs properly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...