NeChan Posted June 26, 2017 Posted June 26, 2017 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 ?
wolstech Posted June 26, 2017 Posted June 26, 2017 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?
NeChan Posted June 27, 2017 Author Posted June 27, 2017 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
Krydos Posted June 27, 2017 Posted June 27, 2017 Check out https://github.com/goldfire/howler.js/issues/513 You're not the only one having this issue with howler.js.
NeChan Posted June 27, 2017 Author Posted June 27, 2017 Nope, still not working, i have been re-decode my audio with Audacity but the error still appear
wolstech Posted June 27, 2017 Posted June 27, 2017 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?
NeChan Posted June 27, 2017 Author Posted June 27, 2017 Have you tried using a different library? What do you mean ?
wolstech Posted June 27, 2017 Posted June 27, 2017 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now