Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NScaleVideoUplinkBandwidthPolicy

NScaleVideoUplinkBandwidthPolicy implements capture and encode parameters that are nearly equivalent to those chosen by the traditional native clients, except for a modification to maxBandwidthKbps and scaleResolutionDownBy described below.

Hierarchy

  • NScaleVideoUplinkBandwidthPolicy

Implements

Index

Constructors

constructor

Properties

Static Readonly encodingMapKey

encodingMapKey: "video" = 'video'

Static Readonly targetHeightArray

targetHeightArray: number[] = ...

Methods

chooseCaptureAndEncodeParameters

chooseEncodingParameters

  • chooseEncodingParameters(): Map<string, RTCRtpEncodingParameters>

chooseMediaTrackConstraints

  • chooseMediaTrackConstraints(): MediaTrackConstraints

maxBandwidthKbps

  • maxBandwidthKbps(): number

reset

  • reset(): void

setHasBandwidthPriority

  • setHasBandwidthPriority(hasBandwidthPriority: boolean): void

setIdealMaxBandwidthKbps

  • setIdealMaxBandwidthKbps(idealMaxBandwidthKbps: number): void

setTransceiverController

updateConnectionMetric

updateIndex

updateTransceiverController

  • updateTransceiverController(): Promise<void>
  • Update the transceiver controller that is set from setTransceiverController such as setEncodingParameters. Only used when unified plan is enabled but not available for simulcast for now. This method should be called when the policy needs to update the local video encoding parameters such as after setHasBandwidthPriority has been called. The default audio video controller calls this after a video is on/off or when an active speakers changes. This method should not throw.

    Returns Promise<void>

wantsResubscribe

  • wantsResubscribe(): boolean

Generated using TypeDoc