Closed qylcx7758 closed 6 years ago
Only if the browser supports aac natively - if it does not, there is no fall-back
This decoding module does not seem to support AAC, I use AAC audio, no error, but play another song.
I use Google Chrome.
In addition, I changed the method, using XMLHttpRequest to request AAC audio, and using this Worker to decode, but error.
A decoder for mp4a was not found
.
or,A demuxer for this container was not found
Sounds like your browser doesn't support it, or you're accidentally piping it to the JS fallback (which definitely doesn't support it). It's probably easier to just reencode to ogg here.
I may describe unclear, this is a simple demo,and it uses your decoding module.You could see it,thanks. If you request AAC audio, will be an error. https://github.com/qylcx7758/play-audio
That's the "js fallback" I mentioned. It does not support aac, and I don't have plans to add support for it.
If you would like to add that support I'm afraid you'll need to do it yourself. Apologies.
Well, I learned a lot about designing and decoding in this project. I'm truly grateful for your help.
It only support MP3 and Ogg?