Html5 Audio Mp3 Not Working In Firefox
Solution 1:
K3N correctly presents the issue in his comment "The audio file in question is not a MP3 file but a WAVE file container file which seem to be embedding MP3 encoded data".
I confirmed this by performing avconv -i <filename>
on the .mp3 in question. I then re-encoded the file using avconv -i <filename> -ar 11025 <new-filename>
and created a new test-link here which correctly plays back the .mp3 file in Firefox.
(Both of the avconv
operations above can be performed using ffmpeg
as well.)
I have tested this in firefox on OS X 10.11.4, Ubuntu 14.04 and Windows 10 in all instances Firefox plays back the new repackaged file.
NB. After further investigation, the sampling rate (11025 Hz) is a non-issue. My tests there masked the issue which K3N raised by properly repackaging the .mp3
Post a Comment for "Html5 Audio Mp3 Not Working In Firefox"