foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
206 stars 10 forks source link

Mic & Webcam not working on Linux clients #11233

Open Mnikley opened 1 week ago

Mnikley commented 1 week ago

What happened?

Using Linux (Debian 12), neither the mic nor the webcam works on multiple browsers (Chromium, Firefox, Firefox ESR). I gave the foundryvtt service (selfhosted, accessed via https domain) all the permissions I could, still the "Enable your Video" and "Enable your Audio" buttons have no effect (no status warning either), and the Audio/Video Configuration panel lists the options: Default Device as well as <Unknown Device> for all options. It seems like this issue only affects Browsers, as the electron app seems to recognize the devices just fine, showing the proper names in the Audio/Video Configuration tab. Unfortunately, as far as I understand, I cannot use the electron app to connect to another server other than localhost.

Webcam, Audio and the Mic work fine in any of the tested browsers when testing it with: onlinemictest.com

What ways of accessing Foundry can you encounter this issue in?

Reproduction Steps

OS: Linux mypc 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux Browser: Chromium V126.0.6478.56 (Official Build) built on Debian 12.5, running on Debian 12.5 (64-bit) FoundryVTT: Version 12 Stable, Build 327 Game System: D&D 3.1.2

What core version are you reporting this for?

Version 12 Stable, Build 327, running as docker-compose service using this image: felddy/foundryvtt:release

Relevant log output

From the Chromium browser console:

foundry.js:92806 [Violation] Permissions policy violation: microphone is not allowed in this document.
_createMediaStream @ foundry.js:92806
foundry.js:92806 [Violation] Permissions policy violation: camera is not allowed in this document.
foundry.js:92806 [Violation] Permissions policy violation: microphone is not allowed in this document.
_createMediaStream @ foundry.js:92806
foundry.js:92806 [Violation] Permissions policy violation: camera is not allowed in this document.
_createMediaStream @ foundry.js:92806
foundry.js:92786 Error: [SimplePeer] Unable to acquire user media stream: Permission denied

Bug Checklist

Mnikley commented 1 week ago

Seems like Firefox Nightly works, for some odd reason. Installed via apt:

wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | gpg --dearmor | sudo tee /usr/share/keyrings/packages.mozilla.org.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/packages.mozilla.org.gpg] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
sudo apt update
sudo apt install firefox-nightly

Mozilla Firefox Debian Package mozilla-deb - 1.0 129.0a1 (2024-06-17) (64-bit)