Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After a stalled, suspend, or waiting event are fired, how do I know when its ok to continue

Its great the HTML5 video element is nice enough to let me know when it's waiting for something, but how does it let me know when its done waiting?

like image 509
blockhead Avatar asked Oct 09 '22 02:10

blockhead


2 Answers

Check out this link with a description of all video events with a live display of which event is happening when. Checking readyState might help you.

  • HTML5 Video Events and API
like image 164
Tomislav Markovski Avatar answered Oct 13 '22 11:10

Tomislav Markovski


Look out for the 'loadeddata', 'canplay' and 'canplaythrough' events - these respectively indicate that some data has been loaded, enough data has been loaded to start playback, and enough data has been loaded to start and finish playback without waiting for further buffering.

like image 27
JamieJag Avatar answered Oct 13 '22 10:10

JamieJag