Skip to content

Commit

Permalink
Update CameraProxy.js (#284)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ZenPylon authored and shazron committed May 24, 2018
1 parent ead7d5e commit 36343a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/CameraProxy.js
Expand Up @@ -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 :(');
}
Expand Down

0 comments on commit 36343a8

Please sign in to comment.