This forum is a discussion about improving the "Viewing HTML5 audio and video in Firefox" article. If you'd like to participate, please register.

If you need help with Firefox, please ask a question.

Firefox 21 on Windows (Win7+) includes built-in MP3 M4A and MP4 support

  • 4 Replies
  • Last reply by AliceWyman
  1. AliceWyman 4134 posts
    Report Abuse

    Related bugs:

    • Bug 799318 - [meta] Support H.264/AAC/MP3 video/audio playback on desktop Firefox
    • Bug 799315 - Windows Media Foundation backend for media playback (Resolved - Fixed mozilla20)

    See also:

    * Media formats supported by the HTML audio and video elements at MDN
    
    Related bugs: *[https://bugzilla.mozilla.org/show_bug.cgi?id=799318 Bug 799318] - [meta] Support H.264/AAC/MP3 video/audio playback on desktop Firefox *[https://bugzilla.mozilla.org/show_bug.cgi?id=799315 Bug 799315] - Windows Media Foundation backend for media playback (Resolved - Fixed mozilla20) See also: * [https://developer.mozilla.org/docs/HTML/Supported_media_formats Media formats supported by the HTML audio and video elements] at MDN
  2. AliceWyman 4134 posts
    Report Abuse

    Copied from my post in the "Firefox 21 Release / Issues / Status" thread

    https://support.mozilla.org/forums/contributors/709209?last=52569&page=2#post-52569

    Firefox 21 on Windows (apparently Win 7 and above) now uses a built- in player for downloaded MP3 files. This MozillaZine thread includes a screenshot. *

    Bug 799315 - Windows Media Foundation backend for media playback has the background for this new feature.

    Firefox Options -> Applications settings for MP3 content types are ignored (see /questions/959542) unless you go to about:config and toggle the preference media.windows-media-foundation.enabled to false.

    Bug 861090 - User should be able to opt to download instead of play MP3/MP4/M4A files in "Settings > Applications" was filed on this.

    P.S. This new feature also affects MP4 files. See Bug 877059 - MP3 and MP4 extension mime settings are ignored.

    Test MP4 file (from http://www.mozilla.org/en-US/firefox/video/ "MPEG-4 format" link). The video plays in the built-in Firefox player now, but it opens in QuickTime with media.windows-media-foundation.enabled to false.

    *The built-in player looks to be the same one used for ogg and webm files (update Viewing HTML5 audio and video in Firefox?)
    
    Copied from my post in the "Firefox 21 Release / Issues / Status" thread https://support.mozilla.org/forums/contributors/709209?last=52569&page=2#post-52569 Firefox 21 on Windows (apparently Win 7 and above) now uses a built- in player for downloaded MP3 files. [http://forums.mozillazine.org/viewtopic.php?f=38&t=2711963 This MozillaZine thread] includes a screenshot. * [https://bugzilla.mozilla.org/show_bug.cgi?id=799315 Bug 799315 - Windows Media Foundation backend for media playback] has the background for this new feature. Firefox '''Options''' -> '''Applications''' settings for MP3 content types are ignored (see [/questions/959542]) unless you go to about:config and toggle the preference '''media.windows-media-foundation.enabled''' to '''false'''. [https://bugzilla.mozilla.org/show_bug.cgi?id=861090 Bug 861090 - User should be able to opt to download instead of play MP3/MP4/M4A files in "Settings > Applications"] was filed on this. P.S. This new feature also affects MP4 files. See [https://bugzilla.mozilla.org/show_bug.cgi?id=877059 Bug 877059 - MP3 and MP4 extension mime settings are ignored]. [http://videos-cdn.mozilla.net/brand/Mozilla_Firefox_Manifesto_v0.2_640.mp4 Test MP4 file] (from http://www.mozilla.org/en-US/firefox/video/ "MPEG-4 format" link). The video plays in the built-in Firefox player now, but it opens in QuickTime with '''media.windows-media-foundation.enabled''' to '''false'''. *The built-in player looks to be the same one used for ogg and webm files (update [[Viewing HTML5 audio and video in Firefox]]?)
    Modified by AliceWyman on
  3. AliceWyman 4134 posts
    Report Abuse

    See also https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats


    To avoid patent issues, support for MPEG 4, H.264, MP3 and AAC is not built directly into Firefox. Instead it relies on support from the OS or hardware. Firefox supports these formats on the following platforms:
    Platform 	Firefox version
    Windows 7+ 	21.0
    Windows Vista 	22.0
    Android 	20.0
    Firefox OS 	15.0
    

    See also https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats ----- To avoid patent issues, support for MPEG 4, H.264, MP3 and AAC is not built directly into Firefox. Instead it relies on support from the OS or hardware. Firefox supports these formats on the following platforms: Platform Firefox version Windows 7+ 21.0 Windows Vista 22.0 Android 20.0 Firefox OS 15.0 -----
  4. AliceWyman 4134 posts
    Report Abuse

    If we do update this article to cover other types of media for Firefox 21 on Windows 7 and above (and also Firefox 22 on Windows Vista):

    We should distinguish between embedded content, which requires a plugin if Firefox can't handle it internally, and direct links to media files, which can be handled by a plugin, helper application, or for supported media types, by Firefox's built-in player.

    With "open media" (ogg and webm) both direct links and embedded content can be handled by the Firefox built-in player without requiring a plugin (embedded content won't require a plugin if HTML 5 <video> and <audio> coding is used).

    For the new types of media now handled in Firefox 21 on Windows 7, direct links for supported media are now handled with the built-in player. As I understand it, embedded mp3 and mp4 content will often still require a plugin because it doesn't use the proper HTML5 coding.

    Note on MP4 support: See also https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats under MP4 H.264 (AAC or MP3). Firefox 21 will only support the MP4 container format with the H.264 video codec and either the AAC audio codec or the MP3 audio codec.

    Test links to compare handling of embedded content and direct links:

    MP3 file:

    MP4 file:

    The “Video For Everybody” Test Page linked in this article also uses the built-in player for embedded MP4 content in Firefox 21 on Windows 7 * ... which I assume is because it uses HTML5 <video> coding.

    *On Firefox 17esr and in the current SeaMonkey 2.17.1 version which is based on  Firefox/20.0 the  embedded video at http://camendesign.com/code/video_for_everybody is webm and the direct link is http://clips.vorwaerts-gmbh.de/VfE.webm
    
    If we do update this article to cover other types of media for Firefox 21 on Windows 7 and above (and also Firefox 22 on Windows Vista): We should distinguish between embedded content, which requires a plugin if Firefox can't handle it internally, and direct links to media files, which can be handled by a plugin, helper application, or for supported media types, by Firefox's built-in player. With "open media" (ogg and webm) both direct links and embedded content can be handled by the Firefox built-in player without requiring a plugin (embedded content won't require a plugin if HTML 5 <nowiki><video></nowiki> and <nowiki><audio></nowiki> coding is used). For the new types of media now handled in Firefox 21 on Windows 7, direct links for supported media are now handled with the built-in player. As I understand it, embedded mp3 and mp4 content will often still require a plugin because it doesn't use the proper HTML5 coding. '''Note on MP4 support:''' See also https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats under '''MP4 H.264 (AAC or MP3)'''. Firefox 21 will only support the ''MP4 container format with the H.264 video codec and either the AAC audio codec or the MP3 audio codec''. Test links to compare handling of embedded content and direct links: MP3 file: *Embedded: http://edmullen.net/mozilla/embed_test_mp3.php *Direct link (from Page Info): http://edmullen.net/test/test.mp3 MP4 file: *Embedded: http://www.mediacollege.com/video/format/mpeg4/streaming/example.html *Direct link (from Page Info): http://www.mediacollege.com/video/format/mpeg4/videofilename.mp4 The [http://camendesign.com/code/video_for_everybody/test.html “Video For Everybody” Test Page] linked in this article also uses the built-in player for embedded MP4 content in Firefox 21 on Windows 7 * ... which I assume is because it uses HTML5 <nowiki><video></nowiki> coding. *Embedded: http://camendesign.com/code/video_for_everybody/test.html *Direct link (from Page Info): http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 *On Firefox 17esr and in the current SeaMonkey 2.17.1 version which is based on Firefox/20.0 the embedded video at http://camendesign.com/code/video_for_everybody is webm and the direct link is http://clips.vorwaerts-gmbh.de/VfE.webm
    Modified by AliceWyman on
  5. AliceWyman 4134 posts
    Report Abuse

    M4A audio files (AAC) are also supported internally.

    M4A audio files (AAC) are also supported internally. *Embedded M4A: http://xahlee.info/js/html5_audio.html (under '''Test your browser''') *Direct link: http://xahlee.info/js/i/s/test.m4a :