HTML Audio / Video
HTML Audio / Video DOM Reference
HTML5 DOM for the <audio> and <video> element provides methods, properties, and events.
These methods, properties, and events that allow you to use JavaScript to manipulate the <audio> and <video> elements.
HTML audio / video method
HTML Audio / Video Properties
HTML Audio / Video Event
event | description |
---|
abort | Fires when the audio / video load has been abandoned. |
canplay | Fires when the browser can start playing the audio / video. |
canplaythrough | Fires when the browser can be played without pause due to buffering. |
durationchange | Fires when the audio / video length of time has changed. |
emptied | Fires when the current playlist is empty. |
ended | Fires when the current play list has ended. |
error | It is triggered when an error occurs in the audio / video during loading. |
loadeddata | Fires when the browser has loaded an audio / video of the current frame. |
loadedmetadata | Fires when the browser has loaded an audio / video metadata. |
loadstart | Fires when the browser start looking for audio / video. |
pause | Fires when the audio / video is paused. |
play | Fires when the audio / video has started or is no longer suspended. |
playing | Fires when the audio / video due to buffering and pause or stop after ready. |
progress | Fires when the browser is downloading the audio / video. |
ratechange | Fires when the audio / video playback speed has changed. |
seeked | Fires when the user has to move / jump to the audio / video in a new location. |
seeking | Fires when the user begins to move / jump to the audio / video to a new position. |
stalled | When the browser tries to obtain media data, but the data is not available when triggered. |
suspend | When the browser is triggered deliberately not get media data. |
timeupdate | Fires when the current playback position has changed. |
volumechange | Fires when the volume has been changed. |
waiting | Due to the need to trigger when the video frame buffer to the next stop. |