HTML | DOM Track readyState property
The DOM track readyState property is used to return the value of the current ready state of the track. It is a read-only property, and ready state denotes that the track is ready to play or not.
Return Values: It returns a number which represent whether the track is ready to play or not.
- 0 = NONE => It means the text track has not been obtained
- 1 = LOADING => It means there are no errors in text track loading and more cues can still be added to the track through the parser.
- 2 = LOADED => It means the text track has been loaded with no errors.
- 3 = ERROR => It means the text track was enabled, but something failed when the user tries to obtain it.
- Before clicking on the button:
- After clicking on the button:
Supported Browsers: The browsers supported by HTML DOM Track readyState property are listed below:
- Google Chrome
- Internet Explorer 10.0+
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.