This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

canplay

Summary

Fires whenever enough data is available to determine whether a media is playable.

Overview Table

Synchronous No
Bubbles No
Target dom/Element
Cancelable No
Default action ?
## Notes

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, load a media resource.

Related specifications

W3C HTML5
Working Draft
WHATWG HTML
Living Standard

Attributions