Bitmovin Player API 8.268.0
    Preparing search index...

    Interface PlayerSubtitlesAPI

    interface PlayerSubtitlesAPI {
        add(subtitle: SubtitleTrack): void;
        cueEnter(cue: SubtitleCueEvent): void;
        cueExit(cue: SubtitleCueEvent): void;
        disable(subtitleID: string): void;
        enable(subtitleID: string, exclusive?: boolean): void;
        list(): SubtitleTrack[];
        remove(subtitleID: string): void;
    }
    Index
    • The player will fire a CueEnter event with the provided information.

      Parameters

      Returns void

    • The player will fire a CueExit event with the provided information.

      Parameters

      Returns void

    • Disabled an enabled subtitle track.

      Parameters

      • subtitleID: string

        the id of the subtitle track to disable

      Returns void

    • Enables a subtitle track. Multiple tracks can be enabled concurrently depending on the exclusive flag.

      Parameters

      • subtitleID: string

        the id of the subtitle track to enable

      • Optionalexclusive: boolean

        Optional, default is true and all other enabled tracks will be disabled. When set to false, the given track will be enabled additionally.

      Returns void

    • Returns the list of all registered subtitles.

      Returns SubtitleTrack[]

      the list of all registered subtitles

    • Removes a subtitle. Disables it in case it's enabled before removal.

      Parameters

      • subtitleID: string

        the id of the subtitle track to remove

      Returns void