Video tag

my question is, what is the difference between using preload = “auto” and preload = “meta” because they both are essentially doing the same thing.
when we use auto, the thumbnail, videolength are downloaded as soon as the the browser loads the webpage
similar is the case with meta as well.
because as mentioned by Sir, the entire video is never downloaded at an instant
so it is not downloaded entirely …neither by meta nor by auto
so then what exactly is the functional difference between the two

Hi @discobot,

  1. Auto: It is used to specify that the browser should load the entire video when the page loads .
  2. Metadata: It is used to specify that the browser should load only metadata when the page loads.
  3. None: It is used to specify that the browser should NOT load the video when the page loads

Hi! To find out what I can do, say @discobot display help.

Hi @discobot,
For deeper reference please visit Link.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

but sir told us that the entire video is never downloaded at once, and that is why you see a white bar ahead of red bar on youtube…while laying video…that white bar suggests how much of the video has been downloaded. so does auto mean that the entire video is downloaded at once…and should i assume that youtube uses meta because the video keeps downloading while playing

Hi @discobot,
YouTube is the world’s second-largest search engine, and it uses metadata – your video’s title, tags and description – to index your video correctly.

So yes , thats correct. You can read more on this at Link.

Also, Please refer to MDN web Docs for detailed description on this.

Hi! To find out what I can do, say @discobot display help.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.