Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

Events

This section describes the events associated with the HTML5 Audio and Video APIs.

Note  If you are developing locally or on an intranet and have rendering issues for HTML5, you can add a "meta http-equiv-'X-UA-Compatible' content= " meta command, followed by "IE=edge" to the <head> block of a webpage to force Windows Internet Explorer to use the latest standards. For more information about document compatibility, see Defining Document Compatibility.

In this section

TopicDescription

abort

Occurs when an append or remove operation is aborted by calling abort.

addsourcebuffer

Occurs when the media source is ended.

canplay

Occurs when playback is possible, but would require further buffering.

canplaythrough

Occurs when playback to end is possible without requiring a stop for further buffering.

cuechange

Occurs when a TextTrackCue in a HTMLTrackElement changes.

durationchange

Occurs when the duration attribute is updated.

emptied

Occurs when the media element is reset to its initial state.

ended

Occurs when the end of playback is reached.

error

Occurs when an error happens during an append operation.

loadeddata

Occurs when media data is loaded at the current playback position.

loadedmetadata

Occurs when the duration and dimensions of the media have been determined.

loadstart

Occurs when Windows Internet Explorer begins looking for media data.

mskeyadded

Occurs after a call to update and a key has been added.

mskeyerror

Occurs when a there is an error in the key session.

mskeymessage

Occurs when a key message has been generated.

onaddtrack

Occurs when a track is added to the track list on a video object.

onchange

Occurs when an AudioTrack in the AudioTrackList associated with a video is enabled or disabled.

onmsneedkey

Occurs when a key is needed to decrypt the media data.

onMSVideoFormatChanged

Occurs when the video format changes.

onMSVideoFrameStepCompleted

Occurs when the video frame has been stepped forward or backward one frame.

onMSVideoOptimalLayoutChanged

Occurs when the msIsLayoutOptimalForPlayback state changes.

onremovetrack

Fires when an AudioTrack is removed from the AudioTrackList.

pause

Occurs when playback is paused.

play

Occurs when the play method is requested.

playing

Occurs when the audio or video has started playing.

progress

Occurs to indicate progress while downloading media data.

ratechange

Occurs when the playback rate is increased or decreased.

removesourcebuffer

Occurs when the media source is ended.

seeked

Occurs when the seek operation ends.

seeking

Occurs when the current playback position is moved.

sourceclose

Occurs when the media source is ended.

sourceended

Occurs when the media source is ended.

sourceopen

Occurs when the media source is opened.

stalled

Occurs when the download has stopped.

suspend

Occurs if the load operation has been intentionally halted.

timeupdate

Occurs to indicate the current playback position.

update

Occurs when an append or remove operation has completed successfully.

updateend

Occurs when the append or remove operation has ended.

updatestart

Occurs when the source buffer is updating.

volumechange

Occurs when the volume is changed, or playback is muted or unmuted.

waiting

Occurs when playback stops because the next frame of a video resource is not available.

 

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.