react-webcam icon indicating copy to clipboard operation
react-webcam copied to clipboard

When user doesn't permit video/camara. Webcam doesn't maintain the aspectRatio

Open JosepSalvat opened this issue 2 years ago • 0 comments

If the user doesn't permit video/audio our webcam shows something like this:

image

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%' }} />

JosepSalvat avatar Dec 30 '21 13:12 JosepSalvat