Skip to main content

Interface: CaptionTrackOptions

Defined in: src/a11y/captions.ts:29

Options for attachCaptionTrack.

Properties​

isDefault?​

optional isDefault: boolean

Defined in: src/a11y/captions.ts:35

Mark the track as the default caption track. Default false.


label?​

optional label: string

Defined in: src/a11y/captions.ts:31

Human-readable track name shown in the player menu. Default Captions.


language?​

optional language: string

Defined in: src/a11y/captions.ts:33

BCP-47 language tag for the track (srclang). Default en.