From b73d6e791ad3a6d0ae4f223731eb91d4aa273197 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 20 May 2014 10:50:50 -0300 Subject: [PATCH] fix smallest resolution --- js/services/video.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/js/services/video.js b/js/services/video.js index e45068097..e206f4ed2 100644 --- a/js/services/video.js +++ b/js/services/video.js @@ -13,10 +13,18 @@ var Video = function() { Video.prototype.setOwnPeer = function(peer, wallet, cb) { var self = this; - navigator.getUserMedia({ + var VWIDTH = 320; + var VHEIGHT = 320; + var constraints = { audio: true, - video: true - }, function(stream) { + video: { + mandatory: { + maxWidth: VWIDTH, + maxHeight: VHEIGHT, + } + } + }; + navigator.getUserMedia(constraints, function(stream) { // This is called when user accepts using webcam self.localStream = stream; var online = wallet.getOnlinePeerIDs();