即使按照建议修改了 .htaccess,VideoJS 也无法在 Firefox 中播放

发布于 2024-11-02 10:59:23 字数 2188 浏览 0 评论 0原文

我面临着在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与往事干杯 2024-11-09 10:59:23

您是否尝试过更换视频源?我使用了这个并且工作正常,

    <source src="http://www.mcintyrebills.com/HGTV_top_10.ogv" type='video/ogg'>
    <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'>

这意味着我正在使用的最新版本(FF 11)忽略了 mp4 和 webm 源。

Have you tried swapping the video sources? I used this and works fine,

    <source src="http://www.mcintyrebills.com/HGTV_top_10.ogv" type='video/ogg'>
    <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'>

This means that latest version that I'm using (FF 11) was ignoring mp4 and webm sources.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文