mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Implemented new MediaDevices API; Fallback for facingMode on Chrome-Mobile
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user