Class
OutputAudioTrack
An OutputTrack providing audio data, created using Output.addAudioTrack.
Extends: OutputTrack
Used by
Properties
metadata
ts
readonly metadata: AudioTrackMetadata;The metadata associated with this track.
See AudioTrackMetadata.
output
ts
readonly output: Output;The Output this track belongs to.
source
ts
readonly source: AudioSource;The media source providing data for this track.
See AudioSource.
type
ts
readonly type: 'audio';The type of this track.
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.
See OutputTrack.
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.