kind property
Gets or sets the type or category of the timed text track associated with a track element.
This property is read/write.
![]() ![]() |
Syntax
| JavaScript |
|---|
object.kind = trackKind trackKind = object.kind |
Property values
Type: string
A keyword that describes the type of text content the track represents.
Standards information
Remarks
The keywords can be one of the following:
- subtitles - A transcription or translation of the audio dialog.
- captions - A transcription or translation of the dialog, sound effects, musical cues, or other audio information.
- descriptions - Textual descriptions of the video component, intended for audio synthesis, such as text-to-speech conversion, when the video component is not viewable by the user.
- chapters - Chapter titles to be used for navigating the video content.
- metadata - Information available to be used from script, not displayed in the player or browser.
This property is not implemented for the AudioTrack object.
Note To create timed text files in both Web Video Text Track (WebVTT) and Timed Text Markup Language (TTML) formats, see HTML5 Video Caption Maker on the Windows Internet Explorer test drive site.
Examples
This example shows the kind, label, and srclang attributes defined on a track element.
<video id="video1" controls autoplay loop>
<source src="http://ie.microsoft.com/testdrive/ieblog/2011/nov/pp4_blog_demo.mp4" type="video/mp4" >
<track id="enTrack" src="entrack.vtt" label="English" kind="subtitles" srclang="en" default>
<track id="esTrack" src="estrack.vtt" label="Spanish" kind="subtitles" srclang="es">
<track id="deTrack" src="detrack.vtt" label="German" kind="subtitles" srclang="de">
HTML5 video not supported
</video>
See also
Show:

