V
V
Vadim2013-10-24 13:54:09
JavaScript
Vadim, 2013-10-24 13:54:09

Preloader for video tag

The video is inserted into the page with the code:

<video width="1024" height="768" poster="">
  <source src="/anyname.webm" type="video/webm">
  <source src="/anyname.mp4" type="video/mp4">
</video>


How to make a preloader for a video file? Is it possible to fully download a file before playing it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SleepingLion, 2013-10-25
@de_arnst

<video preload="auto">
</video>
does what you need.
Is there some more
preload="metadata"
In this case, only the video titles are downloaded.
Description, compatibility.

E
enchikiben, 2013-10-24
@EnChikiben

You need to look towards the events www.w3schools.com/tags/ref_av_dom.asp of the video tag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question