Easy Tutorial
❮ Ev Onunload Att Link Hreflang ❯

HTML Audio/Video DOM canplaythrough Event

HTML Audio/Video DOM Reference Manual

Example

Prompt indicating that the video can play continuously without pausing:


Definition and Usage

The canplaythrough event occurs when the browser estimates that it can continue playing the specified audio/video without stopping for buffering.

The following events occur sequentially while the audio/video is loading:


Browser Support

All major browsers support the canplaythrough event.

Note: Internet Explorer 8 and earlier versions do not support this event.


Syntax

In HTML:

In JavaScript:

Using addEventListener():

Technical Details

Supported HTML Tags: <audio>, <video>
Supported JavaScript Objects: Audio, Video
--- ---

More Examples

Using the oncanplaythrough attribute on an HTML element

Using addEventListener() to listen for the canplaythrough event

❮ Ev Onunload Att Link Hreflang ❯