Table of Contents

adv.videoConstraints

wrtc.adv.videoConstraints is a JSON object property used to control what image to get from local camera. You can specify min/max resolutions and framerates.

If undefined system will use camera's default resolution and framerate.

Please note these are just requests - the PC or browser can still decide to deliver some other camera resolution or framerate than requested.

As wrtc.adv.videoConstraints affects the local camera it will affect video quality in all calls.

Not available in Safari browser. Value of wrtc.adv.videoConstraints is ignored by Safari browser. Other browsers may ignore the value too. Most compatible browser is currently Chrome.

Value

JSON object containing any of:

If not used please set to undefined, not empty object {}.

Default value

undefinded

Usage

After setting wrtc.adv.videoConstraints you must call wrtc.changeMedia()

Example

Request HD camera:
wrtc.adv.videoConstraints = {minWidth:1280,minHeight:720};
wrtc.changeMedia();

Different ways of controlling video quality

Read here.

See Also

call.adv.setVideoEncoding()