Interface: MediaItemTextTrack
Text track definition for a media item. Based on HTMLTrackElement .
Properties
kind
kind:
"subtitles"|"captions"|"descriptions"|"chapters"|"metadata"
The kind of text track.
label
label:
string
Human-readable title of the track.
src
src:
string
URL of the track file (e.g., WebVTT file).
srclang
srclang:
string
Language of the track text data (BCP 47 language tag).
default?
optionaldefault:boolean
Whether the track should be enabled by default.
id?
optionalid:string
Unique identifier for the track.
Last updated on