From 5f13c641bf7d69d098fa6d53e276d884e6e5bc82 Mon Sep 17 00:00:00 2001 From: Lindsey Simon Date: Mon, 11 May 2015 11:32:49 -0700 Subject: [PATCH] Updates defaults for min/max aspectRatio --- src/camera_access.js | 4 ++-- src/config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/camera_access.js b/src/camera_access.js index 046f0fd..44baaaa 100644 --- a/src/camera_access.js +++ b/src/camera_access.js @@ -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); diff --git a/src/config.js b/src/config.js index 30b8889..c7959aa 100644 --- a/src/config.js +++ b/src/config.js @@ -9,8 +9,8 @@ define(function(){ constraints: { width: 640, height: 480, - minAspectRatio: 1, - maxAspectRatio: 1, + minAspectRatio: 0, + maxAspectRatio: 100, facing: "environment" // or user } },