HTML Audio/Video DOMreadyStateProperty
HTML Audio/Video DOM Reference
Examples
Get the ready state of the video:
myVid=document.getElementById("video1");
alert(myVid.readyState);
alert(myVid.readyState);
Try it Yourself »
Definition and Usage
The readyState property returns the current ready state of the audio/video.
The ready state indicates whether the audio/video is ready to play.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the readyState property.
Note:Internet Explorer 8 and earlier versions do not support this property.
Syntax
audio|video.readyState
Return Value
| Type | Description |
|---|---|
| Number | Indicates the ready state of the audio/video element:
|
HTML Audio/Video DOM Reference Other Extensions