|
|
@@ -613,8 +613,10 @@ function getUserMediaWithConstraints(um, success_callback, failure_callback, res
|
|
613
|
613
|
}
|
|
614
|
614
|
break;
|
|
615
|
615
|
}
|
|
616
|
|
- if (constraints.video.minWidth) constraints.video.maxWidth = constraints.video.minWidth;
|
|
617
|
|
- if (constraints.video.minHeight) constraints.video.maxHeight = constraints.video.minHeight;
|
|
|
616
|
+ if (constraints.video.mandatory.minWidth)
|
|
|
617
|
+ constraints.video.mandatory.maxWidth = constraints.video.mandatory.minWidth;
|
|
|
618
|
+ if (constraints.video.mandatory.minHeight)
|
|
|
619
|
+ constraints.video.mandatory.maxHeight = constraints.video.mandatory.minHeight;
|
|
618
|
620
|
|
|
619
|
621
|
if (bandwidth) { // doesn't work currently, see webrtc issue 1846
|
|
620
|
622
|
if (!constraints.video) constraints.video = {mandatory: {}, optional: []};//same behaviour as true
|