Video events are triggered by circumstances related to the video file and video player.
The following table lists commonly used video events.
Event Type | Meaning |
---|---|
canplay | The video can start playing but might be interrupted by buffering. |
canplaythrough | The video can be played through to the end without having to pause for buffering. |
ended | Playback has stopped because the end of the file has been reached. |
error | An error has occurred when accessing the video file. |
pause | Playback has been paused. |
play | The play() function has been initiated, or the autoplay attribute has initiated playback. |
playing | Playback has started. The timing of this event may differ from the play event due to file load delays. |
volumechange | Either the volume attribute or the muted attribute has changed. |