====== 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: * minWidth: minimum image width, in pixels * maxWidth: maximum image width, in pixels * minHeight: minimum image height, in pixels * maxHeight: maximum image height, in pixels * minFrameRate: minimum framerate, images per second * maxFrameRate: maximum framerate, images per second If not used please set to undefined, not empty object {}. ===== Default value ===== undefinded ===== Usage ===== After setting wrtc.adv.videoConstraints you must call [[ixnx:wrtc:js:api:wrtc:changemedia|wrtc.changeMedia()]] ===== Example ===== Request HD camera:\\ wrtc.adv.videoConstraints = {minWidth:1280,minHeight:720};\\ wrtc.changeMedia(); ===== Different ways of controlling video quality ===== [[ixnx:wrtc:js:api:call:adv.setvideoencoding#different_ways_of_controlling_video_quality|Read here.]] ===== See Also ===== [[ixnx:wrtc:js:api:call:adv.setvideoencoding|call.adv.setVideoEncoding()]]