Track readyState Property
Example
Get the current ready state of the track resource:
var x = document.getElementById("myTrack").readyState;
The result of x could be:
2 // Indicates that the text track has been loaded with no errors
Description
The readyState property returns the current ready state of the track resource.
The ready state indicates that the resource is ready to play or not.
Note: This property is read-only.
Browser Support
Property | |||||
---|---|---|---|---|---|
readyState | Yes | 10.0 | Not supported | Not supported | Yes |
Syntax
trackObject.readyState
Technical Details
Return Value: | A Number, representing the ready state of the track resource:
|
---|
❮ Track Object