Open jeremyjs opened 3 years ago
any update on this request? please let's remove this :(
Yes, Can I please ad my vote. There should be no need to enable the microphone. It probably a switch in the zxing library
I believe I have it.
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#parameters
Video constraints can have the additional to properties { audio: false, video: true }
return (
<Webcam
width={width}
height={height}
ref={webcamRef}
screenshotFormat="image/png"
videoConstraints={{
facingMode: 'environment'
}}
/>
)
Becomes...
return (
<Webcam
width={width}
height={height}
ref={webcamRef}
screenshotFormat="image/png"
videoConstraints={{
facingMode: 'environment',
audio: false,
video: true
}}
/>
)
submitted pull request. #12
Is the microphone access necessary for some reason? Causes weird audio issues for me on MacOS Chrome in addition to being an unnecessary security vector.
I can take a look at making a PR if this is an approved improvement.