Abstract class
OutputTrack
Represents a track added to an Output.
Subclasses
Used by
HlsOutputPlaylistInfo.tracksOutputAudioTrack.canBePairedWith()OutputSubtitleTrack.canBePairedWith()OutputVideoTrack.canBePairedWith()
Properties
metadata
ts
readonly metadata: BaseTrackMetadata;The metadata associated with this track.
See BaseTrackMetadata.
output
ts
readonly output: Output;The Output this track belongs to.
source
ts
readonly source: MediaSource;The media source providing data for this track.
See MediaSource.
type
ts
readonly type: TrackType;The type of this track.
See TrackType.
Methods
canBePairedWith()
ts
canBePairedWith(
other: OutputTrack,
): boolean;Returns true if and only if this track can be paired with the given other track. Pairability can be set using the BaseTrackMetadata.group option.
isAudioTrack()
ts
isAudioTrack(): boolean;Returns true if and only if this track is an audio track.
isSubtitleTrack()
ts
isSubtitleTrack(): boolean;Returns true if and only if this track is a subtitle track.
isVideoTrack()
ts
isVideoTrack(): boolean;Returns true if and only if this track is a video track.