Implemented new MediaDevices API; Fallback for facingMode on Chrome-Mobile

This commit is contained in:
Christoph Oberhofer
2016-03-27 23:18:43 +02:00
parent 322413b3c5
commit 4019ea867f
6 changed files with 89 additions and 124 deletions
+2 -3
View File
@@ -98,8 +98,7 @@ $(function() {
var values = value.split('x');
return {
width: parseInt(values[0]),
height: parseInt(values[1]),
facing: "environment"
height: parseInt(values[1])
}
}
},
@@ -118,7 +117,7 @@ $(function() {
constraints: {
width: 640,
height: 480,
facing: "environment" // or user
facingMode: "environment"
}
},
locator: {