Media Events - triggered by media like videos, images and audio. These apply to all HTML elements, but they are most common in media elements, like , , , , and . Attributes Graph Reset zoomHide graphShow graph Supertypes trait SharedEventAttrs class Object trait Matchable class Any Known subtypes trait HtmlAttrs object all.type object attrs.type Members list Clear all Value members Concrete fields lazy val onabort: HtmlAttributeOf Script to be run on abort Script to be run on abort Attributes lazy val oncanplay: HtmlAttributeOf Script to be run when a file is ready to start playing (when it has buffered enough to begin) Script to be run when a file is ready to start playing (when it has buffered enough to begin) Attributes lazy val oncanplaythrough: HtmlAttributeOf Script to be run when a file can be played all the way to the end without pausing for buffering Script to be run when a file can be played all the way to the end without pausing for buffering Attributes lazy val oncuechange: HtmlAttributeOf Script to be run when the cue changes in a element Script to be run when the cue changes in a element Attributes lazy val ondurationchange: HtmlAttributeOf Script to be run when the length of the media changes Script to be run when the length of the media changes Attributes lazy val onemptied: HtmlAttributeOf Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects) Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects) Attributes lazy val onended: HtmlAttributeOf Script to be run when the media has reach the end (a useful event for messages like "thanks for listening") Script to be run when the media has reach the end (a useful event for messages like "thanks for listening") Attributes lazy val onloadeddata: HtmlAttributeOf Script to be run when media data is loaded Script to be run when media data is loaded Attributes lazy val onloadedmetadata: HtmlAttributeOf Script to be run when meta data (like dimensions and duration) are loaded Script to be run when meta data (like dimensions and duration) are loaded Attributes lazy val onloadstart: HtmlAttributeOf Script to be run just as the file begins to load before anything is actually loaded Script to be run just as the file begins to load before anything is actually loaded Attributes lazy val onpause: HtmlAttributeOf Script to be run when the media is paused either by the user or programmatically Script to be run when the media is paused either by the user or programmatically Attributes lazy val onplay: HtmlAttributeOf Script to be run when the media is ready to start playing Script to be run when the media is ready to start playing Attributes lazy val onplaying: HtmlAttributeOf Script to be run when the media actually has started playing Script to be run when the media actually has started playing Attributes lazy val onprogress: HtmlAttributeOf Script to be run when the browser is in the process of getting the media data Script to be run when the browser is in the process of getting the media data Attributes lazy val onratechange: HtmlAttributeOf Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode) Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode) Attributes lazy val onseeked: HtmlAttributeOf Script to be run when the seeking attribute is set to false indicating that seeking has ended Script to be run when the seeking attribute is set to false indicating that seeking has ended Attributes lazy val onseeking: HtmlAttributeOf Script to be run when the seeking attribute is set to true indicating that seeking is active Script to be run when the seeking attribute is set to true indicating that seeking is active Attributes lazy val onstalled: HtmlAttributeOf Script to be run when the browser is unable to fetch the media data for whatever reason Script to be run when the browser is unable to fetch the media data for whatever reason Attributes lazy val onsuspend: HtmlAttributeOf Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason Attributes lazy val ontimeupdate: HtmlAttributeOf Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media) Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media) Attributes lazy val onvolumechange: HtmlAttributeOf Script to be run each time the volume is changed which (includes setting the volume to "mute") Script to be run each time the volume is changed which (includes setting the volume to "mute") Attributes lazy val onwaiting: HtmlAttributeOf Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data) Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data) Attributes Inherited fields lazy val onerror: HtmlAttributeOf Script to be run when an error occurs when the file is being loaded Script to be run when an error occurs when the file is being loaded Attributes Inherited from: SharedEventAttrs
Script to be run on abort
Script to be run when a file is ready to start playing (when it has buffered enough to begin)
Script to be run when a file can be played all the way to the end without pausing for buffering
Script to be run when the cue changes in a element
Script to be run when the length of the media changes
Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
Script to be run when the media has reach the end (a useful event for messages like "thanks for listening")
Script to be run when media data is loaded
Script to be run when meta data (like dimensions and duration) are loaded
Script to be run just as the file begins to load before anything is actually loaded
Script to be run when the media is paused either by the user or programmatically
Script to be run when the media is ready to start playing
Script to be run when the media actually has started playing
Script to be run when the browser is in the process of getting the media data
Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)
Script to be run when the seeking attribute is set to false indicating that seeking has ended
Script to be run when the seeking attribute is set to true indicating that seeking is active
Script to be run when the browser is unable to fetch the media data for whatever reason
Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason
Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
Script to be run each time the volume is changed which (includes setting the volume to "mute")
Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
Script to be run when an error occurs when the file is being loaded