HTML Audio/Video DOM readyState attribute
Instance
Get the ready state of the video:
myVid=document.getElementById("video1"); alert(myVid.readyState);
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 property.
Note:Internet Explorer 8 and earlier browsers do not support this property.
Syntax
audio|video.readyState
Return value
Type | Description |
---|---|
Numeric value |
Represents the readiness state of the audio/video element:
|