W
W
Worddoc2017-08-14 19:56:50
JavaScript
Worddoc, 2017-08-14 19:56:50

How to track html5 video loading?

Hello. There was a question, how to track the download of the video? Tried dataloaded, but it fires when loading the first frame and beyond. I'm not sure that this way you can track the full download of the video. Comrades, tell me! Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
profesor08, 2017-08-14
@Worddoc

Here is comprehensive information: https://www.w3schools.com/tags/ref_av_dom.asp

C
cssfish, 2017-08-15
@cssfish

As far as I remember, the joke there is that there is no unambiguous event - that they say, 100% loaded!
There are all sorts of canplays that only report what can be shown (cached enough).
There are all sorts of buffers (of which there may be several - if, for example, you poked the mouse over the timeline) - and they can be loaded in parallel.
So you have to either think like them, or pervert, compare, for example, duration and buffered ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question