Skip to content

Commit

Permalink
Updates defaults for min/max aspectRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
elsigh committed May 11, 2015
1 parent bd2febd commit 5f13c64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/camera_access.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ define(function(){
constraints: {
width: 640,
height: 480,
minAspectRatio: 1,
maxAspectRatio: 1,
minAspectRatio: 0,
maxAspectRatio: 100,
facing: "environment" // or user
}
},
Expand Down

0 comments on commit 5f13c64

Please sign in to comment.