简体   繁体   English

如何让OGG视频在Firefox 3.6.20中执行自动播放

[英]How To Have An OGG Video Perform Auto-Playback In Firefox 3.6.20

I have a simple HTML5 oriented local page, that can correctly and consistently playback a simple video loop using MP4 and WebM formats correctly under Windows Vista and Windows 7 using IE 9 and Google Chrome 13. Under FireFox 3.6.20, the designated OGG Video file will play, but once completed, will not go back to the beginning of the video clip and play again. 我有一个简单的面向HTML5的本地页面,可以使用IE 9和谷歌Chrome 13在Windows Vista和Windows 7下正确,一致地使用MP4和WebM格式播放​​简单的视频循环。在FireFox 3.6.20下,指定的OGG视频文件将播放,但一旦完成,将不会回到视频剪辑的开头并再次播放。

My HTML for performing the video playback is as follows: 我用于执行视频播放的HTML如下:

<video class="video-js" width="600" height="400" poster="images/home.jpg" preload="auto" autoplay="autoplay" loop="loop"> 
  <source src="videos/home.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> 
  <source src="videos/home.webm" type='video/webm; codecs="vp8, vorbis"' /> 
  <source src="videos/home.ogv" type='video/ogg; codecs="theora, vorbis"' /> 
  <!-- 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="600" height="400" 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":["image.png", {"url": "home.mp4","autoPlay":true,"autoBuffering":true}]}' /> 
    <!-- Image Fallback. Typically the same as the poster image. --> 
    <img src="images/home.jpg" width="600" height="400" alt="Poster Image" 
      title="No video playback capabilities." /> 
  </object> 
</video> 

Is there a way that I can have FireFox go back to the beginning of a video, home.ogv, and resume playing once it has finished its initial playback? 有没有办法可以让FireFox回到视频的开头home.ogv,并在完成初始播放后继续播放?

My apologies if this might be a duplicate question, but I've tried to narrow down my HTML the replicate the auto-playback issue as much as I could, and none of the other solutions posted on the recommended subjects seemed to get me closer to a working solution. 我很抱歉,如果这可能是一个重复的问题,但我试图缩小我的HTML,尽可能多地复制自动播放问题,并且在推荐主题上发布的其他解决方案似乎都没有让我更接近一个有效的解决方

Thank you in advance for your time, help and patience... 提前感谢您的时间,帮助和耐心......

Loop attribute won't work, you'll need some JS workaround. 循环属性不起作用,你需要一些JS解决方法。 You could just use JPlayer or maybe JW Player and let it work it out for you. 您可以使用JPlayerJW Player ,让它为您解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM