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.
call.adv.requestVideoEncoding(maxBitrate, maxFramerate, scaleDown)
Missing values keep old settings.
nothing
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);