How to avoid repeat reloading of HTML video on the same page?



Use preload = ”auto” to avoid repeat reloading of HTML video on the same page −

<!DOCTYPE html>
<html>
   <body>
      <video width = "350" height = "200" 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>

Advertisements