kind property
Gets or set the category of the track associated with a VideoTrack or AudioTrack object.
This property is read/write.
![]() ![]() |
Syntax
| JavaScript |
|---|
object.kind = trackKind trackKind = object.kind |
Property values
Type: string
A keyword that describes the type of content the track represents from on of the following:
| Keyword | Description | Applies to |
|---|---|---|
| alternative | A possible alternative to the main audio or video track. | Audio and video |
| captions | A version of the main track with subtitles embedded in the video. For legacy purposes, text tracks are preferred. | Video only |
| descriptions | Audio descriptions of the video track. | Audio only |
| main | The primary audio or video track. | Audio and video |
| main-desc | The primary audio track mixed with audio descriptions. | Audio only |
| sign | Sign-language interpretation of the audio track. | Video only |
| subtitles | A version of the main track with subtitles embedded in the video. For legacy purposes, text tracks are preferred. | Video only |
| translation | An alternate audio translation of the main audio track. | Audio only |
| commentary | Offers a commentary on primary audio or video track such as a director's commentary. | Audio and video |
| (empty string) | Kind in the track's metadata isn't recognized by Internet Explorer | Audio and video |
Standards information
See also
Show:

