Track readyStateProperty
Example
Get the current ready state of the track resource:
var x = document.getElementById("myTrack").readyState;
xThe output value is:
2 // 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 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 IE versions do not support the readyState property.
Syntax
trackObject.readyState
Technical Details
| Return value: | A number representing the ready state of the track resource: |
|---|
Track Object Other Extensions