EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

canplay | oncanplay event

Occurs when playback is possible, but would require further buffering.

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

 

Syntax

HTML Attribute <element oncanplay = "handler(event)">
Event Property object.oncanplay = handler;
addEventListener Method object.addEventListener("canplay", handler, useCapture)

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

handler [in]

Type: function

Event handler object.

Standards information

Remarks

The canplay event is raised when enough data is available to advance the playback position in the direction of playback.

This event first occurs after loadeddata and before canplaythrough.

To invoke this event, do one of the following:

  • Load a media resource.

See also

audio element
audio
document
source
video element
video object
window
canplaythrough
Make your videos accessible with Timed Text Tracks
oncanplaythrough

 

 

Mostrar:
© 2014 Microsoft