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)
- maxBitrate - (optional) maximum video bandwidth, in kbps
- maxFramerate - (optional) maximum frames per second
- scaleDown - (optional) video frame size downscale factor
Missing values keep old settings.
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);