Dealing with unsupported media type in HTML5 audio element?
I running into an issue whereby the audio player, is not creating an error event for media types it doesn't support. My test is providing an MP4 file containing an Apple Lossless Audio (ALE) payload as an audio source. Behaviour: Safari: Nothing logged in the console; no 'error' event or on play() promise Chrome: Nothing logged in the console; no 'error' event or on play() promise Firefox: Warnings displayed in the console; no 'error' event or on play() promise The HTML: <audio controls="" class="main-audio"> <source src="/music/myaudiofile.mp4" type="audio/x-flac"> </audio> The JS for initiat
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.