Easy Tutorial
❮ Prop Audio Ended Prop Style Borderbottom ❯

onwaiting Event

Event Object

Example

Execute JavaScript when a video needs to buffer due to playing the next frame:


Definition and Usage

The onwaiting event is triggered when a video needs to buffer due to playing the next frame.

This event can be used with the <audio> element, but it is typically applied to video (<video> element) playback.


Browser Support

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

Event
onwaiting Yes 9.0 Yes Yes Yes

Syntax

In HTML:

In JavaScript:

In JavaScript, using the addEventListener() method:

Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions.


Bubbles: No
Cancelable: No
--- ---
Event Type: Event
--- ---
Supported HTML Tags: <audio>, <video>
--- ---
❮ Prop Audio Ended Prop Style Borderbottom ❯