This topic has not yet been rated - Rate this topic

oncanplaythrough event

Occurs when playback to end is possible without requiring a stop for further buffering.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12Internet Explorer 9

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)

Event information

SynchronousNo
BubblesNo
CancelableNo

Event handler parameters

pEvtObj [in]

Type: Event

Standards information

Remarks

The oncanplaythrough event is raised when data is being fetched at a rate that would allow playback without interruption at the IHTMLMediaElement::defaultPlaybackRate. If the IHTMLMediaElement::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
Make your videos accessible with Timed Text Tracks
onplay
onplaying

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.