Latest web development tutorials

HTML DOM Track readyState property

Track Object Reference Track Objects

Examples

Get ready orbit resource current status:

var x = document.getElementById ( "myTrack") readyState.;

x output values:

2 // text track has been loaded, no error


Definition and Usage

readyState property returns the current readiness status orbit resources.

Ready status indicates whether the resource is ready to start playing.

Note: This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer, Opera, and Chrome browser support readyState property.

Note: Firefox, Safari or Internet Explorer 9 and earlier versions do not support IE readyState property.


grammar

trackObject .readyState

technical details

return value: A number that represents the ready state orbit resources:
  • 0 = NONE - did not get the text track
  • 1 = LOADING - Loading a text track, and an error occurs, the next step could be a parser which can be added to the track
  • 2 = LOADED - text track already loaded
  • 3 = ERROR - text track is enabled, but the user can not get in, some data has been lost and can not get correct.


  • Track Object Reference Track Objects