HTML Audio/Video DOM canplaythrough Event
HTML Audio/Video DOM Reference
Example
Display a message when the video can play through without stopping:
myVid=document.getElementById("video1");
myVid.oncanplaythrough=alert("Can play through video without stopping");
Try it »
Definition and Usage
The canplaythrough event occurs when the browser estimates that it can keep playing the specified audio/video without stopping to buffer.
While the audio/video is loading, the following events occur in order:
- loadstart
- durationchange
- loadedmetadata
- loadeddata
- progress
- canplay
- canplaythrough
Browser support





All major browsers support the canplaythrough event.
**Note:** Internet Explorer 8 and earlier versions do not support this event.
Syntax
In HTML: