HTTP content type video / mp4 warning in firefox

I have a video that is embedded in a web page.

My htaccess:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ app.php [QSA,L]
    AddType video/ogg .ogv
    AddType video/mp4 .mp4
    AddType video/webm .webm
</IfModule>

HTML:

<video autoplay="false" width="586px" height="440" src="...mp4"></video>

I am using mediaelement.js player:

$('video').mediaelementplayer();

In firefox, the video does not load and the preview image is not displayed. The player is just black. In firebug, I get this warning:

HTTP "Content-Type" "video / mp4" is not supported. Failed to load media ...

Any idea how to solve this problem?

+5
source share
1 answer

Firefox supports Ogg Theora and WebM videos. It does not support MP4 video (H.264).

http://diveintohtml5.info/video.html#what-works

+7
source

All Articles