Get the kind of text track:
The result of x could be:
The kind property sets or returns the value of the kind attribute of the track.
The kind attribute specifies the kind of text track.
The kind property is supported Internet Explorer, Opera, and Chrome.
Note: The kind property is not supported in Firefox, Safari or Internet Explorer 9 and earlier versions.
Return the kind property:
Set the kind property:
|captions||The track defines translation of dialogue and sound effects (suitable for deaf users)|
|chapters||The track defines chapter titles (suitable for navigating the media resource)|
|descriptions||The track defines a textual description of the video content (suitable for blind users)|
|metadata||The track defines content used by scripts. Not visible for the user|
|subtitles||The track defines subtitles, used to display subtitles in a video|
|Return Value:||A String, representing the kind of text track|
Set the kind of text track:
HTML reference: HTML <track> kind attribute