Need to set mediaConstraints to:
var mediaConstraints = {
video : {
"width": {
"min": 1280,
"max": 1920
},
"height": {
"min": 720,
"max": 1080
}
},
audio : true
};
Also for Antmedia folks, the new ability to switch video inputs in webrtc_adaptor.js doesn’t maintain these values :
In the function:
this.switchVideoCameraCapture = function(streamId, deviceId)
if (typeof deviceId != "undefined" ) {
thiz.mediaConstraints.video = { "deviceId": deviceId };
}
Should become:
if (typeof deviceId != "undefined" ) {
thiz.mediaConstraints.video = {...thiz.mediaConstraints.video, ...{ "deviceId": deviceId }};
}