Skip to Content
The new glomex player is released! 🎉View upgrade guide

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?

optional default: boolean

Whether the track should be enabled by default.


id?

optional id: string

Unique identifier for the track.

Last updated on