Javascript Reference - HTML DOM Track readyState Property








The read-only readyState property returns the current ready state of the track resource.

Browser Support

readyState Yes 10.0 Yes Yes Yes

Syntax

var v = trackObject.readyState

Return Value

A Number type value representing the ready state of the track resource:

  • 0 = NONE - the text track's cues have not been obtained
  • 1 = LOADING - the text track is loading with no errors yet. And cues can still be added to the track by the parser
  • 2 = LOADED - the text track is loaded with no errors
  • 3 = ERROR - the text track was enabled, but when the user agent attempted to obtain it, something failed.