5

I understand that Firefox has decided not to support AAC because of licensing issue but how come is it possible to read m4a files directly in Firefox ? (I'm using 28.0)

For instance with this file :

http://www.jplayer.org/audio/m4a/TSP-01-Cro_magnon_man.m4a

(ffmpeg: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s)

And it expectingly does not work with :

<audio controls>
   <source src="http://www.jplayer.org/audio/m4a/TSP-01-Cro_magnon_man.m4a">
</audio>
Such
  • 910
  • 1
  • 9
  • 20
  • because even though the AAC codec isn't supported, you can still read metadata from the file, like bit+sampling rates. e.g. you can look in a shop window and check out a product, even though you can't afford it. – Marc B Apr 02 '14 at 16:57
  • 3
    Not only can I read the metadata, I can read the audio too... Can't you? – Such Apr 03 '14 at 08:16

1 Answers1

3

The embedding code above works fine for me in Firefox 28 on Windows 7.

My understanding is that while Firefox doesn't support MP4 H.264 AAC from within the software (to avoid licensing issues) it instead farms it out to OS media capabilities automatically (rather than demanding a plugin), relying on external software to deal with the licensing (at least on Windows; Linux looks like it still needs a plugin(?) https://www.mozilla.org/en-US/firefox/26.0/releasenotes/).

If you're having difficulties with m4a files online (but not locally) since upgrading to Firefox 28, I had the same issue and it turned out to be down to MIME types; our default 'audio/mpeg' seemed to work with Firefox 27, but 28 needs 'audio/mp4 m4a' or reports the files corrupted. Don't know why that would affect the above though; you could try putting the type in the source tag, see if that helps. https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats

Andy
  • 31
  • 4
  • Thanks for your help! It's a bit more clear now... It works indeed on windows with the proper MIME type but it won't work in OSX ("Specified "type" attribute of "audio/mp4 m4a" is not supported"). The two different behaviors (direct mp4 file VS HTML5 embedded mp4 file) keep puzzling me then. :) – Such Apr 08 '14 at 14:48