HTML Audio/Video DOM canplay Event
Alert that the video is ready to start playing:
myVid.oncanplay=alert("Can start playing video");
Try it Yourself »
Definition and Usage
The canplay event occurs when the browser can start playing the specified audio/video.
During the loading process of an audio/video, the following events occur, in this order:
The canplay event is supported in all major browsers.
Note: This property is not supported in Internet Explorer 8 and earlier.
|Supported HTML tags:||<audio>, <video>|
HTML Audio/Video DOM Reference
Thank You For Helping Us!
Your message has been sent to W3Schools.