Added tests for video-access

This commit is contained in:
Christoph Oberhofer
2016-03-28 10:07:35 +02:00
parent 4019ea867f
commit 9e6134cc07
2 changed files with 94 additions and 21 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ function applyCameraFacing(facing, constraints) {
});
});
}
return Promise.resolve(merge({}, videoConstraints, {facingMode: facing}));
return Promise.resolve(merge({}, constraints, {video: {facingMode: facing}}));
}
function pickConstraints(videoConstraints) {