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

    Interface AudioTrack

    One audio track of the current media (PlayerState.audioTracks).

    1.0.0

    interface AudioTrack {
        id: number;
        selected: boolean;
        external: boolean;
        exportable: boolean;
        codec: string | null;
        title: string | null;
        language: string | null;
        streamIndex?: number | null;
    }
    Index
    id: number

    The backend's track id; pass it to Player.selectAudioTrack.

    selected: boolean

    The track is playing.

    external: boolean

    True for an external track; such tracks cannot be exported.

    exportable: boolean

    False when the track is not inside the source container.

    codec: string | null

    Codec name, null when unknown.

    title: string | null

    Track title, null when unknown.

    language: string | null

    Language tag, null when unknown.

    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 when the player cannot tell, as for a subtitle track. The SDK always sets it; it is optional only so that an AudioTrack written out in full before 1.10.0 (a test's fixture) still type-checks.

    1.10.0