Amazon Vinyl
    Preparing search index...

    Interface TextTrackInfo

    Identifies and describes an available text track. One TextTrackInfo is produced per discovered subtitle rendition.

    interface TextTrackInfo {
        characteristics: readonly string[];
        default: boolean;
        forced: boolean;
        id: string;
        kind: TextTrackKind;
        label: string;
        language: string | null;
        mimeType: string | null;
        uri: string;
        variables?: Readonly<Record<string, string>>;
    }
    Index
    characteristics: readonly string[]

    Media characteristics / accessibility roles describing the track, e.g. public.accessibility.transcribes-spoken-dialog (HLS CHARACTERISTICS) or a DASH role/accessibility scheme value. Empty when none are signaled.

    default: boolean

    Set when the source manifest signals this track as the default selection.

    forced: boolean

    Whether this is a forced track: it carries essential text (e.g. translations of foreign-language dialogue) meant to be shown even when the user has not enabled subtitles. Two tracks may share a language and differ only by this flag, so selection must distinguish them.

    id: string

    A stable, unique identifier within the current media presentation.

    The text track kind. Defaults to 'subtitles' when not otherwise specified.

    label: string

    A human-readable label for the track.

    language: string | null

    The BCP 47 language tag for the cues in this track, or null if unknown.

    mimeType: string | null

    The MIME type signaled by the source manifest, when known.

    uri: string

    The full URL of the underlying text resource (typically a WebVTT file).

    variables?: Readonly<Record<string, string>>

    HLS EXT-X-DEFINE variables inherited from the parent multivariant playlist. Sidecar text-track media playlists commonly IMPORT these names and reference them in segment URIs. Present only for HLS-sourced tracks whose parent playlist declared any variables.