Attributes | value | description |
|---|
onabort | script | Run script when abort event occurs |
oncanplay | script | Run the script when the media is able to start playing but may need to stop due to buffering |
oncanplaythrough | script | Run script when media can play to the end without stopping due to buffering |
ondurationchange | script | Run script when media length changes |
onemptied | script | Run a script when a media resource element is suddenly empty (network error, loading error, etc.) |
onended | script | Run the script when the medium has reached the end |
onerror | script | Run script when an error occurs during element loading |
onloadeddata | script | Run script when media data is loaded |
onloadedmetadata | script | Run the script when the duration of the media element and other media data are loaded |
onloadstart | script | Run script when browser starts to load media data |
onpause | script | Run script when media data is paused |
onplay | script | Run script when media data is about to start playing |
onplaying | script | Run script when media data has started playing |
onprogress | script | Run the script when the browser is fetching the media data |
onratechange | script | Run script when media data playback rate changes |
onreadystatechange | script | Run the script when the ready-state changes |
onseeked | script | Run the script when the positioning property of the media element is no longer true and the positioning has ended |
onseeking | script | Run script when media element's positioning property is true and positioning has started |
onstalled | script | Run the script when there is an error (delay) during the retrieval of media data |
onsuspend | script | Run the script when the browser is already fetching media data but stopped before retrieving the entire media file |
ontimeupdate | script | Run script when media changes its playback position |
onvolumechange | script | Run script when media changes volume or when volume is muted |
onwaiting | script | Run the script when the media has stopped playing but intends to continue playing |