After an event is started, paused or expected, as I know when it is normal to continue

Its great HTML5 video element is good enough to let me know when it's waiting for something, but how does it tell me when it's waiting?

+4
source share
2 answers

Check out this link with a description of all the video events with a live display of what event occurs when. Checking readyState can help you.

+2
source

Follow the events of 'loadeddata', 'canplay' and 'canplaythrough' - they respectively indicate that some data is loaded, enough data is loaded to start playback, and enough data is loaded to start and end playback without waiting for further buffering.

+2
source

Source: https://habr.com/ru/post/1388797/


All Articles