onwaitingEvent
Example
Execute JavaScript when the video needs to buffer in order to play the next frame:
<video onwaiting="myFunction()">
Try it Yourself »
Definition and Usage
The onwaiting event is triggered when the video needs to buffer in order to play the next frame.
This event can be used on <audio> elements, but is typically applied in video (<video> element) playback.
Browser Support
The numbers in the table specify the first browser version that fully supports the event.
| Event | |||||
|---|---|---|---|---|---|
| onwaiting | Yes | 9.0 | Yes | Yes | Yes |
Syntax
In HTML:
<element onwaiting="myScript">Try it Yourself
In JavaScript:
object.onwaiting=function(){myScript};Try it Yourself
In JavaScript, using the addEventListener() method:
object.addEventListener("waiting", myScript);Try it Yourself
Note:Internet Explorer 8 and earlier IE versions do not supportaddEventListener()method.
Technical Details
| Bubbles: | No |
|---|---|
| Cancelable: | No |
| Event Type: | Event |
| Supported HTML tags: | <audio>, <video> |
Event Object Other Extensions