Track readyState Property
Example
Get the current readiness state of the track resource:
var x = document.getElementById("myTrack").readyState;
x Output value:
2 // The text track has been loaded with no error
Definition and Usage
The readyState property returns the current readiness state of the track resource.
The readiness state indicates whether the resource is ready to start playing.
Note: This property is read-only.
Browser support





Internet Explorer, Opera, and Chrome browsers support the readyState property.
**Note:** Firefox, Safari, or Internet Explorer 9 and earlier versions do not support the readyState property.
Syntax
trackObject
.readyState
Technical Details
| Return Value: | A number representing the readiness state of the track resource:
|
|---|
The Track object