@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface SubtitlesState

    The subtitle state of the current source.

    1.0.0

    interface SubtitlesState {
        sourceId: number;
        phase: string;
        tracks: SubtitleTrack[];
        selected: SubtitleTrack | null;
        secondary: SubtitleTrack | null;
        fonts: { id: string; family: string }[];
        style: SubtitleStyle | null;
        trackConfirmation: "waiting" | "applied" | "uncertain";
        styleConfirmation: "waiting" | "applied" | "uncertain";
        error: string | null;
    }
    Index
    sourceId: number

    The source it belongs to (PlayerState.sourceId).

    phase: string

    The source phase.

    tracks: SubtitleTrack[]

    Every track.

    selected: SubtitleTrack | null

    The primary subtitle, null when off.

    secondary: SubtitleTrack | null

    The secondary subtitle, shown together with selected.

    fonts: { id: string; family: string }[]

    Fonts a style can use (fontId).

    Type Declaration

    style: SubtitleStyle | null

    The effective style: among the plugins that set a layer, the one whose manifest id sorts last (not the most recent call); null without one.

    trackConfirmation: "waiting" | "applied" | "uncertain"

    Whether the renderer confirmed the selection.

    styleConfirmation: "waiting" | "applied" | "uncertain"

    Whether the renderer confirmed the style.

    error: string | null

    The last error, null without one.