Amazon Vinyl
    Preparing search index...

    Interface TextTrackSelection

    Criteria used to pick which text track to render. Applied in priority order: an explicit id wins; otherwise the best language match is chosen among tracks filtered by kind and by forced-ness (from forced when set, else from the controller's TextTrackControllerOptions.enabled mode).

    interface TextTrackSelection {
        forced?: boolean | null;
        id?: string | null;
        kind?: TextTrackKind | null;
        language?: string | readonly string[] | null;
    }
    Index
    forced?: boolean | null

    Explicit forced-ness filter. When set, only tracks whose forced flag equals this value are considered, overriding the forced/full split implied by the enabled mode. Unset means the mode decides.

    id?: string | null

    Selects the text track with this exact identifier, ignoring the other criteria (but still gated by the 'off' mode). If no track has this id, nothing is selected.

    kind?: TextTrackKind | null

    Restricts selection to tracks of this kind (e.g. 'captions'). Unset considers all kinds.

    language?: string | readonly string[] | null

    Preferred caption language(s), most-preferred first, as RFC 5646 tags. When unset (or empty) selection falls back to the platform's navigator.languages.