Interface: SourceTextTrack
A WebVTT track side-loaded alongside a source via
SourceDescription.textTracks (for subtitles/captions or a
kind: 'chapters' cue file that is not embedded in the HLS/DASH manifest).
setSource() validates every entry and silently drops any that isn't a
well-formed object with a non-empty src and a valid TextTrackKind;
it never forwards unchecked data to Video.js's addRemoteTextTrack().
Properties
default?
optionaldefault?:boolean
Mark this track as the default selection for its kind.
kind
kind:
TextTrackKind
One of the five W3C TextTrackKind values.
label?
optionallabel?:string
Human-readable label shown in the subtitles/CC menu.
src
src:
string
URL of the .vtt file. Must be a non-empty string.
srclang?
optionalsrclang?:string
BCP-47 language code (e.g. en, it). Expected for subtitles /
captions / descriptions; irrelevant for chapters / metadata, so it
is optional.