Type
TrackDisposition
Specifies a track's disposition, i.e. information about its intended usage.
ts
type TrackDisposition = {
default: boolean;
primary: boolean;
forced: boolean;
original: boolean;
commentary: boolean;
hearingImpaired: boolean;
visuallyImpaired: boolean;
};Used by
AudioTrackMetadata.dispositionBaseTrackMetadata.dispositionInputAudioTrack.dispositionInputAudioTrack.getDisposition()InputTrack.dispositionInputTrack.getDisposition()InputVideoTrack.dispositionInputVideoTrack.getDisposition()SubtitleTrackMetadata.dispositionVideoTrackMetadata.disposition
Properties
default
ts
default: boolean;Indicates that this track is eligible for automatic selection by a player. Multiple tracks can be default tracks.
primary
ts
primary: boolean;Indicates that the track is the primary track among other tracks of its type.
forced
ts
forced: boolean;Indicates that players should always display this track by default, even if it goes against the user's default preferences. For example, a subtitle track only containing translations of foreign-language audio.
original
ts
original: boolean;Indicates that this track is in the content's original language.
commentary
ts
commentary: boolean;Indicates that this track contains commentary.
hearingImpaired
ts
hearingImpaired: boolean;Indicates that this track is intended for hearing-impaired users.
visuallyImpaired
ts
visuallyImpaired: boolean;Indicates that this track is intended for visually-impaired users.