Skip to content
Class

OutputVideoTrack

An OutputTrack providing video data, created using Output.addVideoTrack.

Extends: OutputTrack

Used by

Properties

metadata

ts
readonly metadata: VideoTrackMetadata;

The metadata associated with this track.

See VideoTrackMetadata.

output

ts
readonly output: Output;

The Output this track belongs to.

source

ts
readonly source: VideoSource;

The media source providing data for this track.

See VideoSource.

type

ts
readonly type: 'video';

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.

Released under the Mozilla Public License 2.0.