THEOplayer Web SDK
    Preparing search index...

    Interface CustomTextTrackOptions

    Options for creating a custom text track.

    interface CustomTextTrackOptions {
        kind: string;
        label?: string;
        language?: string;
        type: "webvtt";
    }
    Index

    Properties

    kind: string

    The kind of the text track, represented by a value from the following list:
    - 'subtitles': The track contains subtitles.
    - 'captions': The track contains closed captions, a translation of dialogue and sound effects.
    - 'descriptions': The track contains descriptions, a textual description of the video.
    - 'chapters': The track contains chapter titles.
    - 'metadata': The track contains metadata. This track will not serve display purposes.

    label?: string

    The label of the text track.

    language?: string

    The language of the text track.

    type: "webvtt"

    The type of cues this track will support.