Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SubtitleTrack

Definition of a subtitle/caption track.

Hierarchy

Index

Properties

Optional enabled

enabled: boolean

Tells if a subtitle track is enabled or disabled. If set to true, the track will be enabled by default.

Optional forced

forced: boolean

Tells if a subtitle track is forced. If set to true it means that the player should automatically select and switch this subtitle according to the selected audio language.

id

id: string

The id of the media track that is used to identify and set the track.

Optional isFragmented

isFragmented: boolean

Indicates whether the subtitle is fragmented.

kind

kind: string

The subtitle type, either "caption" or "subtitle" (default: "subtitle").

label

label: string

The text used to represent this track to the user (e.g. in the UI).

lang

lang: string

The language of the subtitle/caption track.

Optional role

The optional roles of the track.

Optional url

url: string

The URL to the associated file.

Generated using TypeDoc