html - Firefox 中的 HTTP 内容类型视频/mp4 警告

标签 html firefox html5-video

我有一个嵌入网页的视频。

我的 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>

我使用 mediaelement.js 播放器:

$('video').mediaelementplayer();

在 Firefox 中,视频不会预加载,也不会显示预览图像。播放器只是黑色的。在 Firebug 中,我收到此警告:

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

知道如何解决这个问题吗?

最佳答案

Firefox 支持 Ogg Theora 和 WebM 视频。它不支持 MP4 (H.264) 视频。

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

关于html - Firefox 中的 HTTP 内容类型视频/mp4 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11408289/

相关文章:

html - 如何使用ClearKey加密WebM或MP4文件然后播放

html - 盒子模型有什么用?影响父项的子边距

html - 在html div中显示sql的最后几条记录

javascript - 我可以使用 JavaScript/jQuery 捕获当前/所有选项卡 URL 还是需要制作一个插件?

javascript - 居中 'container-fluid' 幻灯片和视频播放器

javascript - 使用 MediaRecorder 将文件另存为 GIF

javascript - Angular 2 : Trying to change a label from the onclick function of clicking a button next to an input form

javascript - 将表单输入转换为大写或替换

css - 在 Firefox 的 Bootstrap 下拉元素中定位 <button class ="close">

python - 即使通过 webdriver+python 设置浏览器首选项后也无法抑制操作系统下载文件窗口