Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 988145 of Media formats supported by the HTML audio and video elements

  • Revision slug: Web/HTML/Supported_media_formats
  • Revision title: Media formats supported by the HTML audio and video elements
  • Revision id: 988145
  • Created:
  • Creator: TD-Linux
  • Is current revision? No
  • Comment

Revision Content

The {{HTMLElement("audio")}} and {{HTMLElement("video")}} elements provide support for playing audio and video media without requiring plug-ins. Video codecs and audio codecs are used to handle video and audio, and different codecs offer different levels of compression and quality. A container format is used to store and transmit the coded video and audio (both together, the case of a video with a soundtrack). Many combinations of codecs and container formats exist, although only a handful of these are relevant on the Web.

Different browsers do not support the same media formats in their implementations of HTML5 video and audio, mainly because of patent issues. The area of media formats on the Web has greatly suffered from patent law in many countries  including the USA and EU countries (the notes on patents in this article is provided as-is and without any warranty.) This article discusses the different codec and container combinations relevant to the web, including support in browsers on both desktop and other device types.

To display a video using HTML5, which works in the newest versions of all major browsers, you can serve your video in both WebM format and MPEG H.264 AAC format, using the {{HTMLElement("source")}} element like this:

<video controls>
  <source src="somevideo.webm" type="video/webm">
  <source src="somevideo.mp4" type="video/mp4">
  I'm sorry; your browser doesn't support HTML5 video in WebM with VP8 or MP4 with H.264.
  <!-- You can embed a Flash player here, to play your mp4 video in older browsers -->
</video>

WebM

The WebM format is based on a restricted version of the Matroska container format. It always uses the VP8 or VP9 video codec and the Vorbis or Opus audio codec. WebM is natively supported in desktop and mobile Gecko (Firefox), Chrome and Opera, and support for the format can be added to Internet Explorer and Safari (but not on iOS) by installing an add-on.

Statement from Microsoft on why IE9 does not have native WebM support.

The WebM format, specifically the VP8 video codec, had been acccused of patent infringment by a group of companies answering a call by the MPEG LA for the formation of a patent pool, but MPEG LA has agreed to license those patents to Google under a "perpetual, transferable, royalty free license".  This means, effectively, that all known patents on the WebM format are licensed to everyone for free. 

Gecko recognizes the following MIME types as WebM files:

video/webm
A WebM media file containing video (and possibly audio as well).
audio/webm
A WebM media file containing only audio.

Ogg Theora Vorbis

The Ogg container format with the Theora video codec and the Vorbis audio codec is supported in desktop/mobile Gecko (Firefox), Chrome, and Opera, and support for the format can be added to Safari (but not on iOS) by installing an add-on. The format is not supported in Internet Explorer in any way.

WebM is generally preferred over Ogg Theora Vorbis when available, because it provides a better compression to quality ratio and is supported in more browsers. The Ogg format can however be used to support older browser versions (for example Firefox 3.5/3.6 don't support WebM, but do support Ogg.)

The patent situation of Theora is similar to that of WebM.

You can learn more about creating Ogg media by reading the Theora Cookbook.

Gecko recognizes the following MIME types as Ogg files:

audio/ogg
An Ogg file containing only audio.
video/ogg
An ogg file containing video (and possibly also audio).
application/ogg
An Ogg file with unspecified content. Using one of the other two MIME types is preferred, but you can use this if you don't know what the contents of the file are.

Ogg Opus

The Ogg container can also contain audio encoded using the Opus codec. Support for this is available in Gecko 15.0 {{geckoRelease("15.0")}} and later, on desktop and mobile browsers.

MP4 H.264 (AAC or MP3)

The MP4 container format with the H.264 video codec and the AAC audio codec is natively supported by desktop/mobile Internet Explorer, Safari and Chrome, but Chromium and Opera do not support the format. IE and Chrome also support the MP3 audio codec in the MP4 container, but Safari does not. Firefox/Firefox for Android/Firefox OS supports the format in some cases, but only when a third-party decoder is available, and the device hardware can handle the profile used to encode the MP4.

Note: MP4s encoded with a high profile will not run on lower end hardware, such as low end Firefox OS phones.

The MPEG media formats are covered by patents, which are not freely licensed. Some of the necessary licenses can be bought from MPEG LA. Since H.264 is currently not a royalty free format, it is unfit for the open web platform, according to Mozilla [1, 2], Google [1, 2] and Opera. However, since royalty free formats are not supported by Internet Explorer and Safari, Mozilla has decided to support the format anyway, and Google never fulfilled their promise to remove support for it in Chrome.

MP3

The MP3 audio format (.mp3, audio/mpeg; distinct from the above MP3 audio in an MP4 container case) is supported in <audio> by Firefox/Firefox for Android/Firefox OS when the operating system provides an MP3 decoder, and by Internet Explorer, Chrome and Safari.

WAVE PCM

The WAVE container format, with the PCM audio codec (WAVE codec "1") is supported by desktop/mobile Gecko (Firefox) and Safari. Files in the WAVE container format typically end with the ".wav" extension.

Note: See RFC 2361 for the WAVE codec registry.

Gecko recognizes the following MIME types as WAVE audio files:

  • audio/wave (preferred; does not work in Chrome)
  • audio/wav
  • audio/x-wav
  • audio/x-pn-wav

Media Source Extensions (MSE)

Media Source Extensions is a W3C working draft that plans to extend {{domxref("HTMLMediaElement")}} to allow JavaScript to generate media streams for playback. Allowing JavaScript to generate streams facilitates a variety of use cases like adaptive streaming and time shifting live streams. This currently has experimental support in Firefox desktop, and other browsers too.

For example, you could implement MPEG-DASH using JavaScript while offloading the decoding to MSE.

Note: Time Shifting is the process of consuming a live stream some time after it happened.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 3.0 {{CompatGeckoDesktop("1.9.1")}} 9.0 10.50 3.1
<audio>: PCM in WAVE {{CompatVersionUnknown}} {{CompatGeckoDesktop("1.9.1")}} {{CompatNo}} 10.50 3.1
<audio>: Vorbis in WebM {{CompatVersionUnknown}} {{CompatGeckoDesktop("2.0")}} {{CompatNo}} 10.60 3.1[1]
<audio>: Streaming Vorbis in WebM via MSE {{CompatUnknown}} {{CompatGeckoDesktop("36.0")}}[2] {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
<audio>: Vorbis in Ogg {{CompatVersionUnknown}} {{CompatGeckoDesktop("1.9.1")}} {{CompatNo}} 10.50 3.1[3]
<audio>: MP3 {{CompatVersionUnknown}}[4] {{CompatVersionUnknown}}[5] 9.0 {{CompatVersionUnknown}} 3.1
<audio>: MP3 in MP4 {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}}
<audio>: AAC in MP4 {{CompatVersionUnknown}}[6] {{CompatVersionUnknown}}[7] 9.0 {{CompatVersionUnknown}} 3.1
<audio>: Opus in Ogg 27.0 {{CompatGeckoDesktop("15.0")}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
<video>: VP8 and Vorbis in WebM 6.0 {{CompatGeckoDesktop("2.0")}} 9.0[8] 10.60 3.1[9]
<video>: VP9 and Opus in WebM 29.0 {{CompatGeckoDesktop("28.0")}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
<video>: Streaming VP9 and Opus/VP8 and Opus in WebM via MSE {{CompatUnknown}} {{CompatGeckoDesktop("36.0")}}[2] {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
<video>: Theora and Vorbis in Ogg {{CompatVersionUnknown}} {{CompatGeckoDesktop("1.9.1")}} {{CompatNo}} 10.50 3.1[3]
<video>: H.264 and MP3 in MP4 {{CompatVersionUnknown}}[4] {{CompatVersionUnknown}}[10] 9.0 {{CompatVersionUnknown}} {{CompatVersionUnknown}}
<video>: H.264 and AAC in MP4 {{CompatVersionUnknown}}[4] {{CompatVersionUnknown}}[11] 9.0 {{CompatVersionUnknown}} 3.1
any other format {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} 3.1[12]
Feature Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile Chrome for Android
Basic support 2.3 24.0 1.0.1 10.0 11.0 {{CompatVersionUnknown}}[13] 3.2 29.0
<audio>: PCM in WAVE {{CompatUnknown}} 24.0 1.0.1 {{CompatNo}} {{CompatNo}} {{CompatVersionUnknown}}[14] 3.2 {{CompatUnknown}}
<audio>: Vorbis in WebM {{CompatUnknown}} 24.0 1.0.1 {{CompatNo}} 11.0 {{CompatVersionUnknown}}[15] {{CompatNo}} {{CompatUnknown}}
<audio>: Streaming Vorbis in WebM via MSE {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
<audio>: Vorbis in Ogg {{CompatUnknown}} 24.0 1.0.1 {{CompatNo}} 11.0 {{CompatVersionUnknown}}[16] {{CompatNo}} {{CompatUnknown}}
<audio>: MP3 {{CompatUnknown}} {{CompatVersionUnknown}}[17] {{CompatVersionUnknown}}[18] 10.0 {{CompatUnknown}} {{CompatVersionUnknown}}[19] 3.2 {{CompatUnknown}}
<audio>: MP3 in MP4 {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}} {{CompatUnknown}}
<audio>: AAC in MP4 {{CompatUnknown}} {{CompatVersionUnknown}}[20] {{CompatVersionUnknown}}[21] 10.0 {{CompatUnknown}} {{CompatVersionUnknown}}[22] {{CompatVersionUnknown}} {{CompatUnknown}}
<audio>: Opus in Ogg {{CompatNo}} 24.0 {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatVersionUnknown}}[23] {{CompatNo}} {{CompatNo}}
<video>:  VP8 and Vorbis in WebM 2.3 24.0 1.0.1 {{CompatNo}} 16.0 {{CompatVersionUnknown}}[24] {{CompatNo}} 29.0
<video>: VP9 and Opus in WebM {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
<video>: Streaming VP9 and Opus/VP8 and Opus in WebM via MSE {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
<video>: Theora and Vorbis in Ogg {{CompatNo}} 24.0 1.0.1 {{CompatNo}} {{CompatNo}} {{CompatVersionUnknown}}[25] {{CompatNo}} {{CompatNo}}
<video>:  H.264 and MP3 in MP4 {{CompatVersionUnknown}}[26] 24.0[33] {{CompatVersionUnknown}}[27] 10.0 16.0[28] {{CompatVersionUnknown}}[29] {{CompatVersionUnknown}} 29.0
<video>: H.264 and AAC in MP4 {{CompatVersionUnknown}}[30] 24.0[34] {{CompatVersionUnknown}}[31] 10.0 16.0[28] {{CompatVersionUnknown}}[32] 3.2 29.0
any other format {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

[1] Must be installed separately.

[2] In Nightly/Dev Edition only.

[3] Must be installed separately, e.g. XiphQT.

[4] AAC is only supported in the MP4 container. Not in Chromium.

[5] To avoid patent issues, support for MP3 is not built directly into Firefox. Instead it relies on support from the OS. Firefox supports this format on the following platforms: Windows Vista+ since Firefox 22.0, Android since Firefox 20.0, Firefox OS since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and OS X 10.7 since Firefox 35.0.

[6] Main only. Not in Chromium. AAC is only supported in the MP4 container.

[7] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4 and AAC is not built directly into Firefox. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4). Firefox supports these formats on the following platforms: Windows Vista+ since Firefox 22.0, Android since Firefox 20.0, Firefox OS since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and OS X 10.7 since Firefox 35.0.

[8] must be installed separately, e.g. WebM MF.

[9] Must be installed separately, e.g. Perian.

[10] To avoid patent issues, support for MPEG 4, H.264 and MP3 is not built directly into Firefox. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4). Firefox supports these formats on the following platforms: Windows Vista+ since Firefox 22.0, Android since Firefox 20.0, Firefox OS since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and OS X 10.7 since Firefox 35.0.

[11] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4, H.264 and AAC is not built directly into Firefox. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4). Firefox supports these formats on the following platforms: Windows Vista+ since Firefox 22.0, Android since Firefox 20.0, Firefox OS since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and OS X 10.7 since Firefox 35.0.

[12] Plays all formats available via QuickTime.

[13] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[14] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[15] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[16] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[17] To avoid patent issues, support for MP3 is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware.

[18] To avoid patent issues, support for MP3 is not built directly into Firefox OS. Instead it relies on support from the OS or hardware.

[19] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[20] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4 and AAC is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).

[21] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4 and AAC is not built directly into Firefox OS. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).

[22] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats. AAC is only supported in the MP4 container.

[23] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[24] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[25] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[26] To get the default Android browser to play H.264 video, you need to jump through some hoops, as explained by Peter Gasston.

[27] In Firefox OS 1.0.1, when detecting <video> support for different formats, HTMLMediaElement.prototype.canPlayType incorrectly reports true for h.264 video whereas in actual fact h.264 is not supported. In Firefox OS 1.1 this problem has been fixed.
To avoid patent issues, support for MPEG 4, H.264 and MP3 is not built directly into Firefox Mobile (Android) and Firefox OS. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).

[28] Partial since 11.0. AAC is only supported in the MP4 container.

[29] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.

[30] AAC is only supported in the MP4 container. To get the default Android browser to play H.264 video, you need to jump through some hoops, as explained by Peter Gasston.

[31] In Firefox OS 1.0.1, when detecting <video> support for different formats, HTMLMediaElement.prototype.canPlayType incorrectly reports true for h.264 video whereas in actual fact h.264 is not supported. In Firefox OS 1.1 this problem has been fixed. AAC is only supported in the MP4 container.
To avoid patent issues, support for MPEG 4, H.264 and ACC is not built directly into Firefox OS. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).

[32] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats. AAC is only supported in the MP4 container.

[33] To avoid patent issues, support for MPEG 4, H.264 and MP3 is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).

[34] To avoid patent issues, support for MPEG 4, H.264 and ACC is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).

See also

Revision Source

<p><span class="seoSummary">The {{HTMLElement("audio")}} and {{HTMLElement("video")}} elements provide support for playing audio and video media without requiring plug-ins.</span> Video codecs and audio codecs are used to handle video and audio, and different codecs offer different levels of compression and quality. A container format is used to store and transmit the coded video and audio (both together, the case of a video with a soundtrack). Many combinations of codecs and container formats exist, although only a handful of these are relevant on the Web.</p>

<p>Different browsers do not support the same media formats in their implementations of HTML5 video and audio, mainly because of patent issues. The area of media formats on the Web has greatly suffered from patent law in many countries&nbsp; including the USA and EU countries (the notes on patents in this article is provided as-is and without any warranty.) This article discusses the different codec and container combinations relevant to the web, including support in browsers on both desktop and other device types.</p>

<p>To display a video using HTML5, which works in the newest versions of all major browsers, you can serve your video in both WebM format and MPEG H.264 AAC format, using the {{HTMLElement("source")}} element like this:</p>

<pre class="brush: html">
&lt;video controls&gt;
  &lt;source src="somevideo.webm" type="video/webm"&gt;
  &lt;source src="somevideo.mp4" type="video/mp4"&gt;
  I'm sorry; your browser doesn't support HTML5 video in WebM with VP8 or MP4 with H.264.
  &lt;!-- You can embed a Flash player here, to play your mp4 video in older browsers --&gt;
&lt;/video&gt;
</pre>

<h2 id="WebM">WebM</h2>

<p>The <a class="external" href="https://www.webmproject.org/">WebM</a> format is based on a restricted version of the <a class="external" href="https://corecodec.com/products/matroska">Matroska</a> container format. It always uses the VP8 or VP9 video codec and the Vorbis or Opus audio codec. WebM is natively supported in desktop and mobile Gecko (Firefox), Chrome and Opera, and support for the format can be added to Internet Explorer and Safari (but not on iOS) by installing an add-on.</p>

<p><a href="https://blogs.msdn.com/b/ie/archive/2011/02/02/html5-and-web-video-questions-for-the-industry-from-the-community.aspx">Statement from Microsoft on why IE9 does not have native WebM support</a>.</p>

<p>The WebM format, specifically the VP8 video codec, had been acccused of patent infringment by a group of companies answering a call by the MPEG LA for the formation of a patent pool, but <a href="https://www.businesswire.com/news/home/20130307006192/en/Google-MPEG-LA-Announce-Agreement-Covering-VP8">MPEG LA has agreed to license those patents to Google</a> under a "<a href="https://xiphmont.livejournal.com/59893.html?thread=310261#t310261">perpetual, transferable, royalty free license"</a>.&nbsp; This means, effectively, that all known patents on the WebM format are licensed to everyone for free.&nbsp;</p>

<p>Gecko recognizes the following MIME&nbsp;types as WebM files:</p>

<dl>
 <dt><code>video/webm</code></dt>
 <dd>A WebM&nbsp;media file containing video (and possibly audio as well).</dd>
 <dt><code>audio/webm</code></dt>
 <dd>A WebM&nbsp;media file containing only audio.</dd>
</dl>

<h2 id="Ogg_Theora_Vorbis">Ogg Theora Vorbis</h2>

<p>The Ogg container format with the Theora video codec and the Vorbis audio codec is supported in desktop/mobile Gecko (Firefox), Chrome, and Opera, and support for the format can be added to Safari (but not on iOS) by installing an add-on. The format is not supported in Internet Explorer in any way.</p>

<p>WebM is generally preferred over Ogg Theora Vorbis when available, because it provides a better compression to quality ratio and is supported in more browsers. The Ogg format can however be used to support older browser versions (for example Firefox 3.5/3.6 don't support WebM, but do support Ogg.)</p>

<p>The patent situation of Theora is similar to that of WebM.</p>

<p>You can learn more about creating Ogg media by reading the <a class="external" href="https://en.flossmanuals.net/ogg-theora/">Theora Cookbook</a>.</p>

<p>Gecko recognizes the following MIME&nbsp;types as Ogg files:</p>

<dl>
 <dt><code>audio/ogg</code></dt>
 <dd>An Ogg file containing only audio.</dd>
 <dt><code>video/ogg</code></dt>
 <dd>An ogg file containing video (and possibly also audio).</dd>
 <dt><code>application/ogg</code></dt>
 <dd>An Ogg file with unspecified content. Using one of the other two MIME types is preferred, but you can use this if you don't know what the contents of the file are.</dd>
</dl>

<h2 id="Ogg_Opus">Ogg Opus</h2>

<p>The Ogg container can also contain audio encoded using the <a class="external" href="https://www.opus-codec.org/">Opus codec</a>. Support for this is available in Gecko 15.0 {{geckoRelease("15.0")}} and later, on desktop and mobile browsers.</p>

<h2 id="MP4_H.264_(AAC_or_MP3)">MP4 H.264 (AAC or MP3)</h2>

<p>The MP4 container format with the H.264 video codec and the AAC audio codec is natively supported by desktop/mobile Internet Explorer, Safari and Chrome, but Chromium and Opera do not support the format. IE and Chrome also support the MP3 audio codec in the MP4 container, but Safari does not. Firefox/Firefox for Android/Firefox OS supports the format in some cases, but only when a third-party decoder is available, and the device hardware can handle the profile used to encode the MP4.</p>

<div class="note">
<p><strong>Note</strong>: MP4s encoded with a high profile will not run on lower end hardware, such as low end Firefox OS phones.</p>
</div>

<p>The MPEG media formats are covered by patents, which are not freely licensed. Some of the necessary licenses can be bought from MPEG LA. Since H.264 is currently not a royalty free format, it is unfit for the open web platform, according to Mozilla [<a class="external" href="https://shaver.off.net/diary/2010/01/23/html5-video-and-codecs/">1</a>, <a class="external" href="https://robert.ocallahan.org/2010/01/video-freedom-and-mozilla_23.html">2</a>], Google [<a class="external" href="https://blog.chromium.org/2011/01/html-video-codec-support-in-chrome.html">1</a>, <a class="external" href="https://blog.chromium.org/2011/01/more-about-chrome-html-video-codec.html">2</a>] and Opera. However, since royalty free formats are not supported by Internet Explorer and Safari, <a href="https://hacks.mozilla.org/2012/03/video-mobile-and-the-open-web/">Mozilla has decided to support the format anyway</a>, and Google never fulfilled their promise to remove support for it in Chrome.</p>

<h2 id="MP3">MP3</h2>

<p>The MP3 audio format (.mp3, <code>audio/mpeg</code>; distinct from the above MP3 audio in an MP4 container case) is supported in <code>&lt;audio&gt;</code> by Firefox/Firefox for Android/Firefox OS when the operating system provides an MP3 decoder, and by Internet Explorer, Chrome and Safari.</p>

<h2 id="WAVE_PCM">WAVE PCM</h2>

<p>The WAVE container format, with the PCM audio codec (WAVE codec "1") is supported by desktop/mobile Gecko (Firefox) and Safari. Files in the WAVE container format typically end with the ".wav" extension.</p>

<div class="note"><strong>Note:&nbsp;</strong>See <a class="external" href="https://www.rfc-editor.org/rfc/rfc2361.txt">RFC 2361</a> for the WAVE codec registry.</div>

<p>Gecko recognizes the following MIME&nbsp;types as WAVE audio files:</p>

<ul>
 <li><code>audio/wave</code> (preferred; does not work in Chrome)</li>
 <li><code>audio/wav</code></li>
 <li><code>audio/x-wav</code></li>
 <li><code>audio/x-pn-wav</code></li>
</ul>

<h2 id="Media_Source_Extensions_(MSE)">Media Source Extensions (MSE)</h2>

<p><a href="https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html">Media Source Extensions</a> is a W3C working draft that plans to extend {{domxref("HTMLMediaElement")}} to allow JavaScript to generate media streams for playback. Allowing JavaScript to generate streams facilitates a variety of use cases like adaptive streaming and time shifting live streams. This currently has experimental support in Firefox desktop, and other browsers too.<br />
 <br />
 For example, <a href="https://msopentech.com/blog/2014/01/03/streaming_video_player/">you could implement MPEG-DASH using JavaScript while offloading the decoding to MSE</a>.</p>

<div class="note">
<p><strong>Note</strong>: Time Shifting is the process of consuming a live stream some time after it happened.</p>
</div>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>3.0</td>
   <td>{{CompatGeckoDesktop("1.9.1")}}</td>
   <td>9.0</td>
   <td>10.50</td>
   <td>3.1</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: PCM in WAVE</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.9.1")}}</td>
   <td>{{CompatNo}}</td>
   <td>10.50</td>
   <td>3.1</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Vorbis in WebM</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("2.0")}}</td>
   <td>{{CompatNo}}</td>
   <td>10.60</td>
   <td>3.1<sup>[1]</sup></td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Streaming Vorbis in WebM via MSE</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoDesktop("36.0")}}<sup>[2]</sup></td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Vorbis in Ogg</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.9.1")}}</td>
   <td>{{CompatNo}}</td>
   <td>10.50</td>
   <td>3.1<sup>[3]</sup></td>
  </tr>
  <tr>
   <td>&lt;audio&gt;: MP3</td>
   <td>{{CompatVersionUnknown}}<sup>[4]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[5]</sup></td>
   <td>9.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>3.1</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: MP3 in MP4</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: AAC in MP4</td>
   <td>{{CompatVersionUnknown}}<sup>[6]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[7]</sup></td>
   <td>9.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>3.1</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Opus in Ogg</td>
   <td>27.0</td>
   <td>{{CompatGeckoDesktop("15.0")}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: VP8 and Vorbis in WebM</td>
   <td>6.0</td>
   <td>{{CompatGeckoDesktop("2.0")}}</td>
   <td>9.0<sup>[8]</sup></td>
   <td>10.60</td>
   <td>3.1<sup>[9]</sup></td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: VP9 and Opus in WebM</td>
   <td>29.0</td>
   <td>{{CompatGeckoDesktop("28.0")}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: Streaming VP9 and Opus/VP8 and Opus in WebM via MSE</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoDesktop("36.0")}}<sup>[2]</sup></td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: Theora and Vorbis in Ogg</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.9.1")}}</td>
   <td>{{CompatNo}}</td>
   <td>10.50</td>
   <td>3.1<sup>[3]</sup></td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: H.264 and MP3 in MP4</td>
   <td>{{CompatVersionUnknown}}<sup>[4]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[10]</sup></td>
   <td>9.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: H.264 and AAC in MP4</td>
   <td>{{CompatVersionUnknown}}<sup>[4]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[11]</sup></td>
   <td>9.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>3.1</td>
  </tr>
  <tr>
   <td>any other format</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>3.1<sup>[12]</sup></td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Opera Mini</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>2.3</td>
   <td>24.0</td>
   <td>1.0.1</td>
   <td>10.0</td>
   <td>11.0</td>
   <td>{{CompatVersionUnknown}}<sup>[13]</sup></td>
   <td>3.2</td>
   <td>29.0</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: PCM in WAVE</td>
   <td>{{CompatUnknown}}</td>
   <td>24.0</td>
   <td>1.0.1</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}<sup>[14]</sup></td>
   <td>3.2</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Vorbis in WebM</td>
   <td>{{CompatUnknown}}</td>
   <td>24.0</td>
   <td>1.0.1</td>
   <td>{{CompatNo}}</td>
   <td>11.0</td>
   <td>{{CompatVersionUnknown}}<sup>[15]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Streaming Vorbis in WebM via MSE</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Vorbis in Ogg</td>
   <td>{{CompatUnknown}}</td>
   <td>24.0</td>
   <td>1.0.1</td>
   <td>{{CompatNo}}</td>
   <td>11.0</td>
   <td>{{CompatVersionUnknown}}<sup>[16]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: MP3</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}<sup>[17]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[18]</sup></td>
   <td>10.0</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}<sup>[19]</sup></td>
   <td>3.2</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: MP3 in MP4</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: AAC in MP4</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}<sup>[20]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[21]</sup></td>
   <td>10.0</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatVersionUnknown}}<sup>[22]</sup></td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;audio&gt;</code>: Opus in Ogg</td>
   <td>{{CompatNo}}</td>
   <td>24.0</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}<sup>[23]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>:&nbsp; VP8 and Vorbis in WebM</td>
   <td>2.3</td>
   <td>24.0</td>
   <td>1.0.1</td>
   <td>{{CompatNo}}</td>
   <td>16.0</td>
   <td>{{CompatVersionUnknown}}<sup>[24]</sup></td>
   <td>{{CompatNo}}</td>
   <td>29.0</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: VP9 and Opus in WebM</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: Streaming VP9 and Opus/VP8 and Opus in WebM via MSE</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: Theora and Vorbis in Ogg</td>
   <td>{{CompatNo}}</td>
   <td>24.0</td>
   <td>1.0.1</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}<sup>[25]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>:&nbsp; H.264 and MP3 in MP4</td>
   <td>{{CompatVersionUnknown}}<sup>[26]</sup></td>
   <td>24.0<sup>[33]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[27]</sup></td>
   <td>10.0</td>
   <td>16.0<sup>[28]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[29]</sup></td>
   <td>{{CompatVersionUnknown}}</td>
   <td>29.0</td>
  </tr>
  <tr>
   <td><code>&lt;video&gt;</code>: H.264 and AAC in MP4</td>
   <td>{{CompatVersionUnknown}}<sup>[30]</sup></td>
   <td>24.0<sup>[34]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[31]</sup></td>
   <td>10.0</td>
   <td>16.0<sup>[28]</sup></td>
   <td>{{CompatVersionUnknown}}<sup>[32]</sup></td>
   <td>3.2</td>
   <td>29.0</td>
  </tr>
  <tr>
   <td>any other format</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Must be installed separately.</p>

<p>[2] In Nightly/Dev Edition only.</p>

<p>[3] Must be installed separately, e.g. <a class="external" href="https://www.xiph.org/quicktime/">XiphQT</a>.</p>

<p>[4] AAC is only supported in the MP4 container. Not in Chromium.</p>

<p>[5] To avoid patent issues, support for MP3 is not built directly into Firefox. Instead it relies on support from the OS. Firefox supports this format on the following platforms: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=825153">Windows Vista</a>+ since Firefox 22.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=748351">Android</a> since Firefox 20.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=714408">Firefox OS</a> since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=851290">OS X 10.7</a> since Firefox 35.0.</p>

<p>[6] Main only. Not in Chromium. AAC is only supported in the MP4 container.</p>

<p>[7] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4 and AAC is not built directly into Firefox. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4). Firefox supports these formats on the following platforms: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=825153">Windows Vista</a>+ since Firefox 22.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=748351">Android</a> since Firefox 20.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=714408">Firefox OS</a> since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=851290">OS X 10.7</a> since Firefox 35.0.</p>

<p>[8] <a class="external" href="https://blogs.msdn.com/b/ie/archive/2011/03/16/html5-video-update-webm-for-ie9.aspx">must be installed separately</a>, e.g. <a class="external" href="https://tools.google.com/dlpage/webmmf/">WebM MF</a>.</p>

<p>[9] Must be installed separately, e.g. <a class="external" href="https://perian.org/">Perian</a>.</p>

<p>[10] To avoid patent issues, support for MPEG 4, H.264 and MP3 is not built directly into Firefox. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4). Firefox supports these formats on the following platforms: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=825153">Windows Vista</a>+ since Firefox 22.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=748351">Android</a> since Firefox 20.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=714408">Firefox OS</a> since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=851290">OS X 10.7</a> since Firefox 35.0.</p>

<p>[11] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4, H.264 and AAC is not built directly into Firefox. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4). Firefox supports these formats on the following platforms: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=825153">Windows Vista</a>+ since Firefox 22.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=748351">Android</a> since Firefox 20.0, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=714408">Firefox OS</a> since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=851290">OS X 10.7</a> since Firefox 35.0.</p>

<p>[12] Plays all formats available via QuickTime.</p>

<p>[13] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[14] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[15] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[16] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[17] To avoid patent issues, support for MP3 is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware.</p>

<p>[18] To avoid patent issues, support for MP3 is not built directly into Firefox OS. Instead it relies on support from the OS or hardware.</p>

<p>[19] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[20] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4 and AAC is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).</p>

<p>[21] AAC is only supported in the MP4 container. To avoid patent issues, support for MPEG 4 and AAC is not built directly into Firefox OS. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).</p>

<p>[22] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats. AAC is only supported in the MP4 container.</p>

<p>[23] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[24] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[25] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[26] To get the default Android browser to play H.264 video, you need to jump through some hoops, as <a href="https://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/">explained by Peter Gasston</a>.</p>

<p>[27] In Firefox OS 1.0.1, when detecting <code>&lt;video&gt;</code> support for different formats, <code>HTMLMediaElement.prototype.canPlayType</code> incorrectly reports <code>true</code> for h.264 video whereas in actual fact h.264 is not supported. In Firefox OS 1.1 this problem has been fixed.<br />
 To avoid patent issues, support for MPEG 4, H.264 and MP3 is not built directly into Firefox Mobile (Android) and Firefox OS. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).</p>

<p>[28] Partial since 11.0. AAC is only supported in the MP4 container.</p>

<p>[29] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats.</p>

<p>[30] AAC is only supported in the MP4 container. To get the default Android browser to play H.264 video, you need to jump through some hoops, as <a href="https://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/">explained by Peter Gasston</a>.</p>

<p>[31] In Firefox OS 1.0.1, when detecting <code>&lt;video&gt;</code> support for different formats, <code>HTMLMediaElement.prototype.canPlayType</code> incorrectly reports <code>true</code> for h.264 video whereas in actual fact h.264 is not supported. In Firefox OS 1.1 this problem has been fixed. AAC is only supported in the MP4 container.<br />
 To avoid patent issues, support for MPEG 4, H.264 and ACC is not built directly into Firefox OS. Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).</p>

<p>[32] Opera Mini itself doesn't support any video or audio, but any video or audio is passed to the device to play if it has support for that format. Opera Mobile also does this with unsupported formats. AAC is only supported in the MP4 container.</p>

<p>[33] To avoid patent issues, support for MPEG 4, H.264 and MP3 is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).</p>

<p>[34] To avoid patent issues, support for MPEG 4, H.264 and ACC is not built directly into Firefox Mobile (Android). Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4).</p>

<h2 id="See_also">See also</h2>

<ul>
 <li><a class="internal" href="/en-US/docs/Web/Guide/HTML/Using_HTML5_audio_and_video">Using audio and video in Firefox</a></li>
 <li><a href="https://bluishcoder.co.nz/2013/08/21/html-media-support-in-firefox.html">HTML media support in Firefox</a></li>
 <li><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/#media-elements">Media elements</a> (HTML&nbsp;5 specification)</li>
 <li>{{HTMLElement("video")}}</li>
 <li>{{HTMLElement("audio")}}</li>
 <li><a class="external" href="https://dev.opera.com/articles/view/introduction-html5-video/#codecs">Video codecs in Opera</a></li>
 <li><a class="external" href="https://msdn.microsoft.com/en-us/library/ff975073%28v=VS.85%29.aspx">Video codecs in Internet Explorer</a></li>
 <li><a class="external" href="https://msdn.microsoft.com/en-us/library/ff975061%28v=vs.85%29.aspx">Audio codecs in Internet Explorer</a></li>
 <li><a href="https://www.chromium.org/audio-video">Audio &amp; Video codecs in Chrome</a></li>
</ul>
Revert to this revision