Video readyState attribute
Definition and usage
readyState
The property returns the current readiness state of the video.
The readiness state indicates whether the video can be played.
Note:This property is read-only.
Example
Get the current readiness state of the video:
var x = document.getElementById("myVideo").readyState; document.getElementById("demo").innerHTML = x;
Syntax
videoObject.readyState
Return value
Type | Description |
---|---|
Number |
Represents the readiness state of the video element:
|
Поддержка браузеров
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Поддержка | 9.0 | Поддержка | Поддержка | Поддержка |