Skip to content
Type

MediaStreamVideoTrackSourceOptions

Options for MediaStreamVideoTrackSource.

ts
type MediaStreamVideoTrackSourceOptions = {
	frameRate?: number | null;
};

Used by

Properties

frameRate

ts
frameRate?: number | null;

The frame rate at which the underlying video track is sampled. Defaults to the frame rate specified in the track's MediaTrackSettings. Set to null to only add a frame whenever the underlying track pushes one - this minimizes frame count but can lead to wildly irregular FPS.

Released under the Mozilla Public License 2.0.