Easy Tutorial
❮ Att Colgroup Char Canvas Arc ❯

HTML Audio/Video DOM waiting Event

HTML Audio/Video DOM Reference Manual

Example

Display a message when the video needs to buffer the next frame before starting playback:


Definition and Usage

The waiting event is triggered when the video stops because it needs to buffer the next frame.

This event can be used with the <audio> element, but it is typically used with videos.


Browser Support

The numbers in the table represent the version number of the first browser that supports the event.

Event
waiting Yes 9.0 Yes Yes Yes

Syntax

In HTML:

In JavaScript:

In JavaScript, using the addEventListener() method:

Note: Internet Explorer 8 and earlier versions do not support the addEventListener() method.


Supported HTML Tags: <audio> and <video>
Supported JavaScript Objects: Audio, Video
--- ---
❮ Att Colgroup Char Canvas Arc ❯