HTML and CSS Reference
In-Depth Information
Table6.HTMLMediaElement-specific events
Event
Description
If user agent stops media resource fetching, but not because of an error.
abort
The user agent can resume playing, but enough of the media resource hasn't been down-
loaded to ensure rendering of entire resource.
canplay
canplaythrough The user agent has fetched enough of the media resource that it can play through all the
way to the end.
durationchange The duration attribute has been changed.
The media element has become empty, for instance if the media resource was loaded, and
the load method is called again.
emptied
Signals completion of playback.
ended
Signals that an error has occurred.
error
Signals that the first frame of the media has been loaded.
loadeddata
loadedmetadata Signals that the metadata has been loaded.
The user agent begins looking for the media data, as part of the loading algorithm.
loadstart
The playback has been paused.
pause
The playback is no longer paused and is playing.
play
Playback can now start after having been paused, or delayed because of lack of media
data.
playing
Periodic update of progress of media fetching.
progress
The defaultPlaybackRate or playbackRate attributes have been changed.
ratechange
Signals end of a seek operation.
seeked
Signals start of a seek operation.
seeking
Triggered when the user agent tries to fetch media data, but for some reason, isn't receiv-
ing any data.
stalled
The user agent has suspended fetching media data before finishing.
suspend
Search WWH ::




Custom Search