简体   繁体   English

Internet Explorer HTML5视频仅在一段时间后才能开始

[英]Internet Explorer HTML5 video starts only after some time

I'm facing the problem that a video does not start to play, which I added to an HTML5 page: 我遇到了视频无法开始播放的问题,我将其添加到HTML5页面中:

<video id="videobcg" preload="auto" autoplay="true" loop="loop"
       muted="muted" volume="0" poster="http://test.com/poster.jpg">
     <source src="http://test.com/texas.mp4" type="video/mp4">
     <source src="http://test.com/texas.webm" type="video/webm">
     <img src="http://test.com/texas.jpg" />
</video>
  • In Chrome and Firefox it works fine; 在Chrome和Firefox中可以正常运行; the video starts in one second. 视频在一秒钟内开始。
  • In Internet Explorer I have to wait some time for video to start. 在Internet Explorer中,我必须等待一段时间才能开始播放视频。
  • In Safari it does not start at all. 在Safari中根本无法启动。

How to fix it? 如何解决?

Sometimes, with MP4 files, the information regarding the length etc. of the file is at the end rather than the start of the file, so some browsers need to download the entire thing to get this information in order to play the file. 有时,对于MP4文件,有关文件长度等的信息位于文件的结尾而不是文件的开头,因此某些浏览器需要下载整个文件才能获取此信息,以便播放文件。

Try running QTIndexSwapper 2 on the file which will move the required information to the start of the file, if it needs to be. 尝试在文件上运行QTIndexSwapper 2 ,如果需要,它将把所需的信息移到文件的开头。

It's worth a try. 值得一试。

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

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