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.
source share