Track readyState Property
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
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.
|A Number, representing the ready state of the track resource:
❮ Track Object