mozmorris / react-webcam

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

Webcam not working in Firefox (linux) #357

Closed clementpoiret closed 1 year ago

clementpoiret commented 1 year ago

Please follow the general troubleshooting steps first:

Bug reports:

I saw similar issues, but it is not solved for me, especially on an App I have developed, that is working as expected on Chrome. On firefox, the webcam component is blank, even on the sample provided at https://codepen.io/mozmorris/pen/JLZdoP

Here is my system configuration:

System:
  Kernel: 5.15.54-xanmod1-tt-1 arch: x86_64 bits: 64 compiler: clang
    v: 14.0.6, Desktop: i3 v: 4.21.1 info: i3bar vt: 7 dm: LightDM v: 1.32.0
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Precision 3551 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0GYJNK v: A00 serial: <superuser required> UEFI: Dell
    v: 1.11.1 date: 02/08/2022
CPU:
  Info: 6-core model: Intel Core i7-10850H bits: 64 type: MT MCP smt: enabled
    arch: Comet Lake rev: 2 cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB
  Speed (MHz): avg: 1600 high: 1601 min/max: 800/5100 cores: 1: 1600 2: 1600
    3: 1600 4: 1600 5: 1600 6: 1600 7: 1600 8: 1600 9: 1601 10: 1600 11: 1600
    12: 1600 bogomips: 64797
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Dell driver: i915
    v: kernel arch: Gen-9.5 ports: active: eDP-1 empty: DP-1, DP-2, DP-3,
    HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300
  Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-11:2 chip-ID: 0bda:5539 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
    compositor: Picom v: git-98a5c driver: X: loaded: intel unloaded: nvidia
    dri: i965 gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: BOE Display 0x0869 res: 1920x1080
    hz: 60 dpi: 143 size: 340x190mm (13.39x7.48") diag: 395mm (15.5")
    modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (CML GT2)
    direct render: Yes
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:06c8 class-ID: 0403
  Sound API: ALSA v: k5.15.54-xanmod1-tt-1 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.60 running: yes
Info:
  Processes: 445 Uptime: 5h 38m wakeups: 13651 Memory: 15.24 GiB
  used: 10.89 GiB (71.5%) Init: systemd v: 252 default: graphical Compilers:
  gcc: 12.2.0 alt: 10/11 clang: 14.0.6 Packages: 1846 pm: pacman pkgs: 1830
  pm: flatpak pkgs: 16 Shell: Zsh v: 5.9 running-in: alacritty inxi: 3.3.23

And my firefox version: 107.0 (64-bit) (Mozilla Firefox for Arch Linux archlinux - 1.0)

Thanks, Clément

clementpoiret commented 1 year ago

My bad: it was simply a bad config from my side...