Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Content-Type video/mp4 warning in firefox

I have a video that is embeddedin in a webpage.

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 use the mediaelement.js player:

$('video').mediaelementplayer();

In firefox the video does not preload and it does not show the preview image. The player is just black. In firebug I get this warning:

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

Any idea how to solve this problem?

like image 903
UpCat Avatar asked Jul 10 '12 07:07

UpCat


1 Answers

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

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

like image 166
deceze Avatar answered Sep 23 '22 15:09

deceze