Events
This section describes the events associated with the HTML5 Audio and Video APIs.
In this section
| Topic | Description |
|---|---|
|
Occurs when an append or remove operation is aborted by calling abort. | |
|
Occurs when the media source is ended. | |
|
Occurs when playback is possible, but would require further buffering. | |
|
Occurs when playback to end is possible without requiring a stop for further buffering. | |
|
Occurs when a TextTrackCue in a HTMLTrackElement changes. | |
|
Occurs when the duration attribute is updated. | |
|
Occurs when the media element is reset to its initial state. | |
|
Fired when the browser encounters Initialization Data in the media data. | |
|
Occurs when the end of playback is reached. | |
|
Occurs when an error happens during an append operation. | |
|
Fired when there has been a change in the keys in the session or their status. | |
|
Occurs when media data is loaded at the current playback position. | |
|
Occurs when the duration and dimensions of the media have been determined. | |
|
Occurs when Windows Internet Explorer begins looking for media data. | |
|
Fired when the CDM has generated a message for the session. | |
|
Deprecated. Occurs after a call to update and a key has been added. | |
|
Deprecated. Occurs when a there is an error in the key session. | |
|
Deprecated. Occurs when a key message has been generated. | |
|
Occurs when a track is added to the track list on a video object. | |
|
Occurs when an AudioTrack or VideoTrack in the AudioTrackList or VideoTrackList associated with a video is enabled or disabled. | |
|
This event is fired when the browser encounters Initialization Data in the media data. | |
|
Deprecated. Occurs when a key is needed to decrypt the media data. | |
|
Occurs when the video format changes. | |
|
Occurs when the video frame has been stepped forward or backward one frame. | |
|
Occurs when the msIsLayoutOptimalForPlayback state changes. | |
|
Fires when an AudioTrack or VideoTrack is removed from the AudioTrackList or VideoTrackList. | |
|
Occurs when playback is paused. | |
|
Occurs when the play method is requested. | |
|
Occurs when the audio or video has started playing. | |
|
Occurs to indicate progress while downloading media data. | |
|
Occurs when the playback rate is increased or decreased. | |
|
Occurs when the media source is ended. | |
|
Fires when a video element's width or height attributes (or both) are updated. | |
|
Occurs when the seek operation ends. | |
|
Occurs when the current playback position is moved. | |
|
Occurs when the media source is ended. | |
|
Occurs when the media source is ended. | |
|
Occurs when the media source is opened. | |
|
Occurs when the download has stopped. | |
|
Occurs if the load operation is intentionally halted. Starting in Microsoft Edge, also occurs if the media network state becomes NETWORK_IDLE. | |
|
Occurs to indicate the current playback position. | |
|
Occurs when an append or remove operation has completed successfully. | |
|
Occurs when the append or remove operation has ended. | |
|
Occurs when the source buffer is updating. | |
|
Occurs when the volume is changed, or playback is muted or unmuted. | |
|
Occurs when playback stops because the next frame of a video resource is not available. | |
|
Fired when the CDM has generated a message for the session. |