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

    Interface SubtitleTrack

    A subtitle track of the current source.

    1.0.0

    interface SubtitleTrack {
        id: string;
        kind: "embedded" | "external";
        embeddedId?: number;
        title: string;
        language: string | null;
        styleSupported: boolean;
        styleReason: string | null;
        owned: boolean;
        codec: string | null;
        text: boolean;
        streamIndex: number | null;
    }
    Index
    id: string

    Stable while the track exists; compare tracks by id.

    kind: "embedded" | "external"

    Inside the container, or loaded from a file.

    embeddedId?: number

    The container's subtitle track number, for embedded tracks only.

    title: string

    Track title.

    language: string | null

    Language tag, null when unknown.

    styleSupported: boolean

    Subtitles.setStyle applies to this track.

    styleReason: string | null

    Why the style does not apply, null when it does.

    owned: boolean

    Loaded by this plugin, so remove() may delete it.

    codec: string | null

    The backend's codec name, e.g. "subrip", "ass", "hdmv_pgs_subtitle".

    text: boolean

    Text cues (subrip, ass, ssa, webvtt, mov_text, text), not bitmaps.

    streamIndex: number | null

    The container stream number (ffmpeg -map 0:<n>) of an embedded track, when the player can vouch for it; null for external tracks and network sources.