HTML Audio/Video Events


Event Description
abort Triggers when an audio or video doesn't finish loading and stops abruptly.
canplay Triggers when the web browser is ready to begin playing the audio or video.
canplaythrough Triggers when the web browser is ready to begin playing the audio or video.
durationchange Triggers when the length of the audio or video is modified.
emptied Triggers when the playlist has no more songs.
ended Triggers when the current list of songs is finished.
error Triggers when there's a problem while trying to load an audio or video file.
loadeddata Triggers when the browser finishes loading the part of the audio or video you're currently watching.
loadedmetadata Triggers when the browser finishes getting basic info for the audio/video.
loadstart Triggers when the web browser begins searching for audio or video content.
pause Triggers when the sound or video has been stopped.
play Triggers when the sound or video begins playing or when it's no longer stopped.
playing Triggers when the sound or video starts again after being temporarily stopped for buffering.
progress Triggers when the web browser is getting audio or video from the internet.
ratechange Triggers when the speed of the sound or video changes.
seeked This happens when the user is done changing where they are in the audio or video.
seeking Triggers when the user begins to jump or move to a different part of the audio or video.
stalled Triggers when the browser wants to get media information, but the information is not there yet./td>
suspend Triggers when the web browser is purposely not receiving media information.
timeupdate Triggers when the spot where a video or music is playing changes.
volumechange Triggers when the sound level is adjusted.
waiting Triggers when the video pauses to load the next part.