Define Audio and Video Media Event in HTML5
In this article I will explain Audio and Video Media Event in HTML5.
Audio and Video
Handling Media Events
The HTML5 audio and
video tag can have a number of attributes to control various functionality of
event is generated when playback is aborted.
This event is generated when enough data is available that the media can be
This event is generated when playback completes.
event is generated when an error occurs.
This event is generated when the first frame of the media has finished
This event is generated when loading of the media begins.
event is generated when playback is paused.
event is generated when playback starts or resumes.
This event is generated periodically to inform the progress of the
downloading the media.
This event is generated when the playback speed changes.
This event is generated when a seek operation completes.
This event is generated when a seek operation begins.
This event is generated when loading of the media is suspended.
This event is generated when the audio volume changes.
This event is generated when the requested operation (such as playback) is
delayed pending the completion of another operation (such as a seek)
The user agent is trying to fetch media data, but data is unexpectedly not
The user agent has just determined the duration and dimensions of the media
The current playback position changed as part of normal playback or in an
especially interesting way, for example discontinuously.
attribute has just been updated.
canplaythrough The user
agent estimates that if playback were to be started now, the media resource
could be rendered at the current playback rate all the way to its end
without having to stop for further buffering.
You may also want to read these
related articles :
Got a programming related question?
You may want to post your question here
Programming Answers here