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

Interface: TextTrack

Represents a text track (subtitles, captions, etc.).

Extends

  • MediaTrack

Properties

id

id: string

Unique identifier for the track.

Inherited from

MediaTrack.id


kind

kind: "subtitles" | "captions" | "descriptions" | "chapters"

The type of text track.

Overrides

MediaTrack.kind


label

label: string

Human-readable label for the track.

Inherited from

MediaTrack.label


language

language: string

BCP 47 language tag (e.g., “en”, “de”, “es”).

Inherited from

MediaTrack.language


mode

mode: "hidden" | "disabled" | "showing"

The current display mode of the track.

  • 'disabled': Track is not active.
  • 'hidden': Track is active but not displayed (for programmatic access).
  • 'showing': Track is active and displayed to the user.
Last updated on