kind property

Gets or set the category of the track associated with a VideoTrack or AudioTrack object.

This property is read/write.

HTML5 A vocabulary and associated APIs for HTML and XHTMLIE11

 

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:

KeywordDescriptionApplies to
alternativeA possible alternative to the main audio or video track.Audio and video
captionsA version of the main track with subtitles embedded in the video. For legacy purposes, text tracks are preferred. Video only
descriptionsAudio descriptions of the video track. Audio only
mainThe primary audio or video track. Audio and video
main-descThe primary audio track mixed with audio descriptions. Audio only
signSign-language interpretation of the audio track. Video only
subtitlesA version of the main track with subtitles embedded in the video. For legacy purposes, text tracks are preferred. Video only
translationAn alternate audio translation of the main audio track.Audio only
commentaryOffers 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 ExplorerAudio and video

 

Standards information

See also

VideoTrack
AudioTrack

 

 

Show: