oncanplay event
[This documentation is preliminary and is subject to change.]
Occurs when playback is possible, but would require further buffering.
Syntax
HTML Attribute | <element oncanplay = "handler(event)"> |
Event Property | object.oncanplay = handler; |
attachEvent Method | object.attachEvent("oncanplay", handler) |
addEventListener Method | object.addEventListener("canplay", handler, useCapture) |
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12
Event information
Synchronous | No |
Bubbles | No |
Cancelable | No |
Event handler parameters
- pEvtObj [in]
Type: IHTMLEventObj
Remarks
The oncanplay event is raised when enough data is available to advance the playback position in the direction of playback.
This event first occurs after onloadeddata and before oncanplaythrough.
To invoke this event, do one of the following:
- Load a media resource.
See also
Build date: 1/25/2012