VideoPreset
Defined in: client-sdk-js/src/track/options.ts:241
Encapsulates a video resolution together with its target encoding parameters. Used for simulcast layers and default presets.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VideoPreset(options): VideoPreset;Defined in: client-sdk-js/src/track/options.ts:247
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”VideoPreset
Constructor
Section titled “Constructor”new VideoPreset( width, height, maxBitrate, maxFramerate?, priority?): VideoPreset;Defined in: client-sdk-js/src/track/options.ts:248
Parameters
Section titled “Parameters”number
height
Section titled “height”number
maxBitrate
Section titled “maxBitrate”number
maxFramerate?
Section titled “maxFramerate?”number
priority?
Section titled “priority?”RTCPriorityType
Returns
Section titled “Returns”VideoPreset
Properties
Section titled “Properties”aspectRatio?
Section titled “aspectRatio?”aspectRatio?: number;Defined in: client-sdk-js/src/track/options.ts:245
encoding
Section titled “encoding”encoding: VideoEncoding;Defined in: client-sdk-js/src/track/options.ts:242
height
Section titled “height”height: number;Defined in: client-sdk-js/src/track/options.ts:244
width: number;Defined in: client-sdk-js/src/track/options.ts:243
Accessors
Section titled “Accessors”resolution
Section titled “resolution”Get Signature
Section titled “Get Signature”get resolution(): VideoResolution;Defined in: client-sdk-js/src/track/options.ts:286
Convenience getter that returns a VideoResolution from this preset.