Open JosepSalvat opened 2 years ago
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 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%' }} />
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 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%' }} />