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>

Updated on: 25-Jun-2020

621 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements