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
Definition and Usage
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
The readyState property is supported Internet Explorer, Opera, and Chrome.
Note: The readyState property is not supported in Firefox, Safari or Internet Explorer 9 and earlier versions.
Syntax
trackObject.readyState
Technical Details
Return Value: | A Number, representing the ready state of the track resource:
|
---|
< Track Object