HTML video autoplay loop

10,668

Check your Chrome Dev Tools network settings, you most likely had Disable cache checked, so with every loop it would fetch the video again.

Share:
10,668
noa-dev
Author by

noa-dev

Updated on June 04, 2022

Comments

  • noa-dev
    noa-dev almost 2 years

    To keep it short.

    I have a video which is set to autoplay and loop via attributes in the video tag. It works great- the video gets autoplay in a loop over and over again.

    <video autoplay loop>
      <source src="movie.mp4" type="video/mp4">
      <source src="movie.ogg" type="video/ogg">
    </video>
    

    The only weird behaviour is that everytime the video starts over, it is being retreived as GET request as if the video would be loaded for the first time. Can this be prevented ? This results in a huge traffic if a couple of people will be on the website.