Video readyState Property
Example
Get the current ready state of the video:
var x = document.getElementById("myVideo").readyState;
document.getElementById("demo").innerHTML = x;
Try it Yourself »
Definition and Usage
The readyState property returns the current ready state of the video.
The ready state indicates if the video is ready to play or not.
Note: This property is read-only.
Browser Support
Property | |||||
---|---|---|---|---|---|
readyState | Yes | 9.0 | Yes | Yes | Yes |
Syntax
videoObject.readyState
Return Value
Type | Description |
---|---|
Number | Represents the ready state of the video element:
|
❮ Video Object