Track readyState attribute
Definition and usage
readyState
The property returns the current readiness status of the track resource.
The readiness status indicates whether the resource is ready to play.
Note:This property is read-only.
Example
Get the current readiness status of the track resource:
var x = document.getElementById("myTrack").readyState;
The result of x could be:
2 // Indicates that the text track is loaded and there are no errors
Syntax
trackObject.readyState
Technical details
Return value: |
Value indicating the readiness status of the track resource:
|
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | 10.0 | Not Supported | Not Supported | Supported |