Table of Contents

adv.requestVideoEncoding()

call.adv.requestVideoEncoding() controls the video stream received in the call. It can be used to ask other end of call to limit maximum bandwidth and framerate, and downscale the video it transmits to us.

Client at other end of call will automatically perform a call.adv.setVideoEncoding() with supplied arguments.

call.adv.requestVideoEncoding() works only if client at other end of call uses wrtc_kit.
SIP clients will ignore these requests.

Arguments

call.adv.requestVideoEncoding(maxBitrate, maxFramerate, scaleDown)

Missing values keep old settings.

Read more here.

Returns

nothing

Example

Request a low resolution "postage stamp" image transmitted to us:

call.adv.requestVideoEncoding(100, 5, 4);

Request full image transmitted to us again:

call.adv.requestVideoEncoding(wrtc.adv.requestBandwidth, 50, 1);

Different ways of controlling video quality

Read here.

See Also

call.adv.setVideoEncoding()

wrtc.adv.videoConstraints

wrtc.videoBandwidth

wrtc.adv.requestBandwidth