M
M
Millerish2016-07-04 12:45:55
JavaScript
Millerish, 2016-07-04 12:45:55

Html player is there a video load event?

I will be faced with the task of installing a preloader at the time of loading the video when it is in the play status, but does not go, because. loads. I flip through Google and the documentation for the second day, I don’t find anything sensible.
Tried to listen to such events as: onloadeddata, onplay, onplaying, ontimeupdate, onwaiting and almost everything from here.
Is there any way to solve my issue? You need to know exactly when the video is loaded and when it starts playing after loading.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Фёдор, 2016-07-04
@whyamiscott

https://developer.mozilla.org/en-US/Apps/Fundament...

Дмитрий Беляев, 2016-07-04
@bingo347 Куратор тега JavaScript


The video element has a canplay event, which occurs at the moment when the metadata is loaded + a small fragment of the video that can already be
played I didn’t try it, but I spied on YouTube and there is a desire to implement it somehow: the video stream is loaded via a web socket and written to a blob, and the url of this blob is given to the player, as a result we get full control over the download

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question