mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +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({
|
videoConstraints = HtmlUtils.mergeObjects({
|
||||||
width: 640,
|
width: 640,
|
||||||
height: 480,
|
height: 480,
|
||||||
minAspectRatio: 1,
|
minAspectRatio: 0,
|
||||||
maxAspectRatio: 1,
|
maxAspectRatio: 100,
|
||||||
facing: "environment"
|
facing: "environment"
|
||||||
}, config);
|
}, config);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -9,8 +9,8 @@ define(function(){
|
|||||||
constraints: {
|
constraints: {
|
||||||
width: 640,
|
width: 640,
|
||||||
height: 480,
|
height: 480,
|
||||||
minAspectRatio: 1,
|
minAspectRatio: 0,
|
||||||
maxAspectRatio: 1,
|
maxAspectRatio: 100,
|
||||||
facing: "environment" // or user
|
facing: "environment" // or user
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user