mozmorris / react-webcam

Webcam component
https://codepen.io/mozmorris/pen/JLZdoP
MIT License
1.63k stars 281 forks source link

video not displayed with external camera (Logitech) #386

Open AoNoOokami opened 9 months ago

AoNoOokami commented 9 months ago

Please follow the general troubleshooting steps first:

Bug reports:

When I try the demo on a laptop with an external device, the video is not displayed in Firefox or Opera. The video tags are presents, but depending on the browser, I have either a black rectangle or nothing where the video should be displayed.

This issue is present when I use an external webcam on a laptop. I tried :

However, the demo is working fine with the laptop built-in webcams.

I found this bug while evaluating the possibility to migrate an app from vanilla Javascript (MediaStream Recording API, video.js) to React. We don't have this issue with our current code.

Features:

Please note by far the quickest way to get a new feature is to file a Pull Request.

We will consider your request but it may be closed if it's something we're not actively planning to work on.

AoNoOokami commented 7 months ago

UPDATE: it seems that the problem is caused by Ubuntu apparmor profile for firefox (installed with snap). I leave this here in case some other people encounter similar issues. Still digging concerning Opera.