react-webcam
react-webcam copied to clipboard
When user doesn't permit video/camara. Webcam doesn't maintain the aspectRatio
If the user doesn't permit video/audio our webcam shows something like this:
I've saw demos that when u don't permit video/audio it still shows the default video layout (black screen).
I'm doing something wrong?
I tried to put <Webcam /> only and doesn't work either.
const videoConstraints = { aspectRatio: 0.5625, facingMode: 'user' };
<Webcam className={styles.videoComp} mirrored ref={webcamRef} muted audio videoConstraints={videoConstraints} style={{ width: '100%' }} />