MP4 not supported in Firefox?

firefox, html, html5-video, mp4

Solution

MP4 is not supported in Firefox through the video element unless you are on Vista (since version 22), Windows 7 (since version 21) and 8, Linux (since version 24 but disabled by default until version 26) and Android (since version 17) and then only if a third-party decoder is available for it (source).

Update 1 (2014) Current plans is to also support MP4 for Mac from version 35 (released early next year),

Update 2 (2016) It's supported through native APIs since v35.

Also from Mozilla Developer Network:

Firefox supports the format on some platforms, but only when a third-party decoder is available.

That it plays when you supply the link directly indicates that you have a plugin installed which is capable of showing mp4 (ie. QuickTime or something similar). This and the video element are unrelated however.

To get around this you can supply OGG Vorbis and/or WebM formats. You can use a free converter such as Miro to support these formats which are supported also in Firefox.

Problem

If I paste the following URL directly into the address bar in Firefox, the video plays just fine: http://distilleryvesper1-13.ak.instagram.com/744b42900fab11e3a34522000ae80008_101.mp4 However, as soon as I wrap it in HTML5 video tags (as in this Fiddle), Firefox claims that the video isn't supported: ``` <video width="612" height="612" controls> <source src="http://distilleryvesper1-13.ak.instagram.com/744b42900fab11e3a34522000ae80008_101.mp4" type="video/mp4"> </video> ``` I'm using Firefox version 24.0. Any ideas?

Original source