How to fully upload HTML5 video when a page loads?

I am adding 4 videos to the 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 download the video in the background, even if the page takes a little longer to load. I want to ensure that the video is not interrupted by buffering as soon as you play them. Thanks to everyone.

+3
source share
1 answer

Try this, it can solve your @ w3schools problem :

<!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 details for Preload @ JWPlayer

+1
source

All Articles