开发者

How to fully load an HTML5 video, when the page loads?

I'm adding 4 videos to a page, using the "vide开发者_运维技巧o" tag along with the "preload" attribute. This works as expected, but I'm curious if there is a way to fully load the video on the background, even if the page takes a little longer to load. What I want to accomplish is that the videos don't get interrupted by buffering, once you are playing them. Thanks everybody.


Try this, this might solved your issue @ w3schools:

<!DOCTYPE html>
<html>
<body>

<video width="320" height="240" controls="controls" preload="auto">
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video>

</body>
</html>

or go into detail for Preload @ JWPlayer

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜