JavaScript Media Events
You are Here:
JavaScript Media Events
The following are the list of Media events available in JavaScript programming.
Functions | Explanation |
---|---|
onabort | Occurs when the user aborts the loading of video/audio. |
oncanplay | Occurs when a video/audio is ready to start playing. |
oncanplaythrough | Occurs when the browser can play the audio/video, and estimates that enough data has been loaded to play the audio/video up to its end without having to stop for further buffering of content. |
ondurationchange | Occurs when the duration attribute of the audio/video has been updated. |
onemptied | Occurs when the media has become empty. |
onended | Occurs when playback or streaming has stopped because the end of the media was reached or because no further data is available. |
onerror | Occurs when the media could not be loaded. |
onloadeddata | Occurs when the frame at the current playback position of the media has finished loading; often the first frame. |
onloadedmetadata | Occurs when the metadata of the media has been loaded. |
onloadstart | Occurs when the browser has started to load a media (resource). |
onpause | Occurs when the audio/video is paused. |
onplay | Occurs when the audio/video has been started or is no longer paused. |
onplaying | Occurs when the audio/video is ready to start after having been paused or delayed due to lack of data. |
onprogress | Occurs periodically as the browser loads a image/video (resource). |
onratechange | Occurs when the playing speed of the audio/video is changed. |
onseeked | Occurs when the current playback position has changed. |
onseeking | Occurs when the audio/video is seeking a new position. |
onstalled | Occurs when the browser is trying to fetch media data, but data is unexpectedly not forthcoming. |
onsuspend | Occurs when fetching the media data is stopped before it is completely loaded. |
ontimeupdate | Occurs when the time indicated by the currentTime attribute has been updated. |
onvolumechange | Occurs each time the volume of a video/audio has been changed. |
onwaiting | Occurs when the video stops because of a temporary lack of data. |
Reminder
Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in JavaScript.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.