即使按照建议修改了 .htaccess,VideoJS 也无法在 Firefox 中播放
我面临着在 Firefox 3.6 中启用 VideoJS“Video for Every”播放的巨大挑战。
我读了很多帖子,也遵循了很多建议,但视频仍然无法在 Firefox 中播放。但是,视频可以在 Chrome、IE 等中播放。这是我的代码:
HTML:
<video class="video-js" width="440" height="264" controls preload>
<source src="http://www.mcintyrebills.com/HGTV_top_10.mp4" type="video/mp4" />
<source src="http://www.mcintyrebills.com/HGTV_top_10.webm" type="video/webm" />
<source src="http://www.mcintyrebills.com/HGTV_top_10.ogg" type="video/ogg" />
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
<object id="flash_fallback_1" class="vjs-flash-fallback" width="440" height="264" type="application/x-shockwave-flash"
data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowfullscreen" value="true" />
<param name="flashvars"
value='config={"playlist":["http://www.mcintyrebills.com/logo.png", {"url": "http://www.mcintyrebills.com/HGTV_top_10.mp4","autoPlay":false,"autoBuffering":true}]}' />
<!-- Image Fallback. Typically the same as the poster image. -->
<img src="http://www.mcintyrebills.com/logo.png" width="440" height="264" alt="Poster Image"
title="No video playback capabilities." />
</object>
</video>
在 Apache 服务器上,我有 .htaccess 文件:
AddType video/mp4 .mp4
AddType video/ogg .ogv
AddType video/webm .webm
AddType video/x-m4v .m4v
AddType application/ogg .ogg
// Comment - This is to prevent compression of video files, as suggested.
SetEnvIfNoCase Request_URI \.(og[gv]|mp4|m4v|webm)$ no-gzip dont-vary
我以为我已完成了所要求的所有操作,但仍然无法在 Firefox 3.6 中播放。请帮忙?
这是我尝试在 Firefox 中显示视频的测试版页面。
http://www.mcintyrebills.com/video.html
您可以在以下位置找到视频:
Press --> HGTV's Top 10 (last link)
谢谢,
I'm having a great challenge to enable VideoJS "Video for Everybody" play in Firefox 3.6.
I read so many posts and I've followed so many suggestions, but still videos can't play in firefox. However, videos play in Chrome, IE etc. This is my code:
HTML:
<video class="video-js" width="440" height="264" controls preload>
<source src="http://www.mcintyrebills.com/HGTV_top_10.mp4" type="video/mp4" />
<source src="http://www.mcintyrebills.com/HGTV_top_10.webm" type="video/webm" />
<source src="http://www.mcintyrebills.com/HGTV_top_10.ogg" type="video/ogg" />
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
<object id="flash_fallback_1" class="vjs-flash-fallback" width="440" height="264" type="application/x-shockwave-flash"
data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowfullscreen" value="true" />
<param name="flashvars"
value='config={"playlist":["http://www.mcintyrebills.com/logo.png", {"url": "http://www.mcintyrebills.com/HGTV_top_10.mp4","autoPlay":false,"autoBuffering":true}]}' />
<!-- Image Fallback. Typically the same as the poster image. -->
<img src="http://www.mcintyrebills.com/logo.png" width="440" height="264" alt="Poster Image"
title="No video playback capabilities." />
</object>
</video>
On the Apache server I have in .htaccess file:
AddType video/mp4 .mp4
AddType video/ogg .ogv
AddType video/webm .webm
AddType video/x-m4v .m4v
AddType application/ogg .ogg
// Comment - This is to prevent compression of video files, as suggested.
SetEnvIfNoCase Request_URI \.(og[gv]|mp4|m4v|webm)$ no-gzip dont-vary
I thought I did everything that is asking for and still can't play in Firefox 3.6. Please help?
Here is the beta page I'm trying to display video in firefox.
http://www.mcintyrebills.com/video.html
The video you'll find under:
Press --> HGTV's Top 10 (last link)
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过更换视频源?我使用了这个并且工作正常,
这意味着我正在使用的最新版本(FF 11)忽略了 mp4 和 webm 源。
Have you tried swapping the video sources? I used this and works fine,
This means that latest version that I'm using (FF 11) was ignoring mp4 and webm sources.