MP4 is not supported in Firefox?

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 am using Firefox version 24.0.

Any ideas?

+6
source share
4 answers

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

Update 1 (2014) Current plans - Also support MP4 for Mac from version 35 (released early next year),

Update 2 (2016) It is supported using the built-in APIs from v35 .

Also from the Mozilla Developer Network :

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

The fact that it plays when the link is directly indicated indicates that you have installed a plug-in capable of displaying mp4 (i.e. QuickTime or something like that). This and the video element are not interconnected.

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

+10
source

FYI, Firefox 35 introduced native support for OSX and Windows in early 2015. https://www.mozilla.org/en-US/firefox/35.0/releasenotes/

+2
source

You may be on a Mac and you have the QuickTime plugin installed, so the plug-in plays the video if you navigate directly to it, but it does not work in the video element, because Mac support for MP4 / H.264 / AAC is not ready yet.

As of November 2013 / Firefox 26 Firefox supports MP4 / H.264 / AAC in Vista and later versions of Windows, Android, and Firefox.

Your Fiddle also works on Linux when GStreamer support is enabled and encrypted codecs are installed. (GStreamer support is not yet enabled by default, for example, in assemblies supplied by Canonical for Ubuntu.)

+1
source

you may need this if you do not have support for MP4 files:

Windows Media Feature Pack for Windows 7 N and for Windows 7 KN:

http://support.microsoft.com/kb/968211

http://www.microsoft.com/en-us/download/details.aspx?id=16546

Also make sure that these prefs have a default value:

media.windows-media-foundation.enabled

media.directshow.enabled

0
source

Source: https://habr.com/ru/post/958350/


All Articles