DONT ADD ANYTHING HERE!

  1. track
    1. Each track element lets you specify a timed text track (or time-based data) that can be displayed in parallel with the media element, for example to overlay subtitles or closed captions on top of a video or alongside audio tracks
    2. The track element is used as a child of the media elements, audio and video
    3. Multiple track elements can be specified for a media element, containing different kinds of timed text data
    4. The data that is used will either be the track that has been set to be the default, or a kind and translation based on user preferences
    5. The track element does not represent anything on its own
  2. kind
    1. The kind attribute is an enumerated attribute (takes one of a finite set of keywords)
    2. The following table lists the keywords defined for this attribute
    keyword/state description
    subtitles/subtitles
    1. Transcription or translation of the dialogue, suitable for when the sound is available but not understood (e.g. because the user does not understand the language of the media resource's soundtrack)
    2. Displayed over the video
    captions/Captions
    1. Transcription or translation of the dialogue, sound effects, relevant musical cues, and other relevant audio information, suitable for when the soundtrack is unavailable (e.g. because it is muted or because the user is deaf)
    2. Displayed over the video; labeled as appropriate for the hard-of-hearing
    descriptions/Descriptions
    1. Textual descriptions of the video component of the media resource, intended for audio synthesis when the visual component is unavailable (e.g. because the user is interacting with the application without a screen while driving, or because the user is blind
    2. Synthesized as separate audio track.
    chapters/Chapters
    1. Chapter titles, intended to be used for navigating the media resource
    2. Displayed as an interactive list in the user agent's interface
    metadata/Metadata
    1. Tracks intended for use from script
    2. Not displayed by the user agent
    1. The kind attribute may be omitted
    2. The missing value default is the subtitles state
  3. src
    1. The src attribute gives the address of the text track data
    2. The value must be a valid non-empty URL potentially surrounded by spaces
    3. This attribute must be present
  4. srclang
    1. The srcang attribute gives the language of the text track data
    2. The value must be a valid BCP 47 language tag
    3. This attribute must be present if the element's kind attribute is in the subtitles state
  5. label
    1. The label attribute gives a user-readable title for the track
    2. This title is used by user agents when listing subtitle, caption, and audio description tracks in their user interface
    3. If the element has a label attribute whose value is not the empty string, then the element's track label is the value of the attribute
    4. Otherwise, the element's track label is a user-agent defined string (e.g. the string "untitled")
  6. default
    1. The default attribute, if specified, indicates that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate
    2. There must not be more than one track element with the same parent node with the default attribute specified

Example

<video controls>

    <source src="sample.mp4" type="video/mp4" />
    <track default kind="captions" src="sampleCaptions.vtt" />
    <track kind="subtitles" src="sampleSubtitles.vtt" srclang="en" />

</video> 

Mnemonic

traki -- the track element has a kind attribute

References