mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
Updates defaults for min/max aspectRatio
This commit is contained in:
@@ -74,8 +74,8 @@ define(["html_utils"], function(HtmlUtils) {
|
||||
videoConstraints = HtmlUtils.mergeObjects({
|
||||
width: 640,
|
||||
height: 480,
|
||||
minAspectRatio: 1,
|
||||
maxAspectRatio: 1,
|
||||
minAspectRatio: 0,
|
||||
maxAspectRatio: 100,
|
||||
facing: "environment"
|
||||
}, config);
|
||||
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ define(function(){
|
||||
constraints: {
|
||||
width: 640,
|
||||
height: 480,
|
||||
minAspectRatio: 1,
|
||||
maxAspectRatio: 1,
|
||||
minAspectRatio: 0,
|
||||
maxAspectRatio: 100,
|
||||
facing: "environment" // or user
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user