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
+3 -3
View File
@@ -5,9 +5,9 @@ module.exports = {
constraints: {
width: 640,
height: 480,
minAspectRatio: 0,
maxAspectRatio: 100,
facing: "environment" // or user
// aspectRatio: 640/480, // optional
facingMode: "environment", // or user
// deviceId: "38745983457387598375983759834"
},
area: {
top: "0%",