Update CameraProxy.js (#284)

Remove audio flag from getUserMedia on the browser.  Including audio resulted in some nasty audio feedback, and audio isn't really needed for taking pictures anyway.
This commit is contained in:
Andrew Decker 2018-05-24 00:42:39 -05:00 committed by Shazron Abdullah
parent ead7d5e6c2
commit 36343a8e07

View File

@ -109,7 +109,7 @@ function capture (success, errorCallback, opts) {
};
if (navigator.getUserMedia) {
navigator.getUserMedia({video: true, audio: true}, successCallback, errorCallback);
navigator.getUserMedia({video: true, audio: false}, successCallback, errorCallback);
} else {
alert('Browser does not support camera :(');
}