oncanplaythrough event
[This documentation is preliminary and is subject to change.]
Occurs when playback to end is possible without requiring a stop for further buffering.
Syntax
HTML Attribute | <element oncanplaythrough = "handler(event)"> |
Event Property | object.oncanplaythrough = handler; |
attachEvent Method | object.attachEvent("oncanplaythrough", handler) |
addEventListener Method | object.addEventListener("canplaythrough", 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 oncanplaythrough event is raised when data is being fetched at a rate that would allow playback without interruption at the defaultPlaybackRate. If the autoplay attribute is specified, the video starts playing when oncanplaythrough is received.
This event occurs after oncanplay and before the first onprogress event is received.
To invoke this event, do one of the following:
- Load a media resource.
See also
Reference
Build date: 1/25/2012