Class
OutputSubtitleTrack
An OutputTrack providing subtitle data, created using Output.addSubtitleTrack.
Extends: OutputTrack
Used by
Properties
metadata
ts
readonly metadata: SubtitleTrackMetadata;The metadata associated with this track.
output
ts
readonly output: Output;The Output this track belongs to.
source
ts
readonly source: SubtitleSource;The media source providing data for this track.
See SubtitleSource.
type
ts
readonly type: 'subtitle';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.