Added orientation-dependent constraints; extended constrain-matching;

This commit is contained in:
Christoph Oberhofer
2017-03-26 23:22:10 +02:00
parent 22f48ea541
commit afcaa580b1
4 changed files with 156 additions and 20 deletions
+13 -4
View File
@@ -146,11 +146,20 @@ $(function() {
inputStream: {
type : "LiveStream",
constraints: {
width: {ideal: 480},
height: {ideal: 480},
zoom: {exact: 2},
width: {ideal: 800},
height: {ideal: 800},
facingMode: "environment",
aspectRatio: 1,
landscape: {
width: {ideal: 640},
height: {ideal: 480},
zoom: 1.5,
},
portrait: {
width: {ideal: 640},
height: {ideal: 640},
zoom: 1.5,
aspectRatio: 1,
}
}
},
locator: {