HTML Audio/Video DOM readyState Property
HTML Audio/Video DOM Reference
Example
Get the readiness state of the video:
myVid=document.getElementById("video1");
alert(myVid.readyState);
Try it »
Definition and Usage
The readyState property returns the current readiness state of the audio/video.
The readiness state indicates whether the audio/video is ready to play.
Browser support





All major browsers support the readyState attribute.
**Note:** Internet Explorer 8 and earlier versions do not support this property.
Syntax
audio|video
.readyState
Return Value
| Type | Description |
|---|---|
| Number | Represents the readiness state of the audio/video (audio/video) element:
|
HTML Audio/Video DOM Reference