jnkrois
jnkrois

Reputation: 682

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

I'm adding 4 videos to a page, using the "video" 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.

Upvotes: 3

Views: 6387

Answers (1)

GOK
GOK

Reputation: 2428

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

Upvotes: 1

Related Questions