onloadeddata event
Occurs when media data is loaded at the current playback position.
Syntax
HTML Attribute | <element onloadeddata = "handler(event)"> |
Event Property | object.onloadeddata = handler; |
addEventListener Method | object.addEventListener("loadeddata", handler, useCapture) |
Event information
Synchronous | No |
Bubbles | No |
Cancelable | No |
Event handler parameters
handler [in]
Type: functionEvent handler object.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12
Remarks
The onloadeddata event is raised when data for the immediate current playback position is available. However, when the event fires, it doesn't guarantee that enough data is available to successfully begin playback.
This event occurs after onloadedmetadata and before oncanplay.
To invoke this event, do one of the following:
- Load a media resource.
Note The Windows HTMLDocumentEvents4::onload event is delayed if there is media network activity.
See also
Reference