HTML DOM Track kind property
Examples
Gets the type of text track:
var x = document.getElementById ( "myTrack") kind.;
x The output is:
subtitles
Definition and Usage
kind property is used to set the kind property value or return track.
kind attribute describes the type of text track.
Browser Support
Internet Explorer, Opera, and Chrome browser support kind property.
Note: Firefox, Safari or Internet Explorer 9 and earlier versions of IE do not support the kind property.
grammar
Returns kind properties:
trackObject .kind
Setting kind properties:
trackObject .kind = "captions | chapters | descriptions | metadata | subtitles"
Property Value
value | description |
---|---|
captions | Short description of the track will be defined in the player display. |
chapters | The rail section is defined, for navigation media resources. |
descriptions | This definition describes the track for the audio description of media content, if the content can not be played or not visible. |
metadata | Define the content of the track used by the script. |
subtitles | The caption track is defined for displaying subtitles in the video. |
technical details
return value: | Category string that represents the text track |
---|
More examples
Examples
Setting the type of text track:
. Document.getElementById ( "myTrack") kind = "chapters";
Related Pages
HTML Reference Manual: HTML <Track> kind property
Track Objects