Interface VideoTextTrackDto

interface VideoTextTrackDto {
    default?: boolean;
    id?: string;
    in_band_metadata_track_dispatch_type?: string;
    kind?: string;
    label?: string;
    mime_type?: string;
    sources?: {
        src?: string;
    }[];
    src?: string;
    srclang?: string;
}

Properties

default?: boolean

whether this is the default track

id?: string
in_band_metadata_track_dispatch_type?: string

If this field is present, it means that references for this text track are available in the associated video's manifest

kind?: string

kind of text track

label?: string

label for the track

mime_type?: string

mime_type for the track

sources?: {
    src?: string;
}[]

array of sources for .vtt files (note that in many cases there will be one source with a src value identical to the text_tracks.src value, but this array is included in case there are multiple protocols available, such as http and https)

Type declaration

  • Optional src?: string
src?: string

URL for the .vtt file

srclang?: string

2-letter language code, such as "en" or "ko"