Closed Bug 1883228 Opened 8 months ago Closed 6 months ago

WebRTC cameras via Pipewire not detected by BigBlueButton

Categories

(Core :: WebRTC: Audio/Video, defect)

Firefox 123
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: be.0, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0

Steps to reproduce:

  1. Go to about:config, set media.webrtc.camera.allow-pipewire to true
  2. Restart Firefox
  3. Join BigBlueButton room. I encountered this on https://bbb.sfconservancy.org
  4. Click webcam button on bottom of page to enable sharing a webcam.

Actual results:

BigBlueButton doesn't detect any available cameras, however the LED indicator on my webcam (Razer Kiyo Pro) lights up. Other WebRTC pages for example https://webrtc.github.io/test-pages/src/single-video/ work fine.

Expected results:

BigBlueButton allows selecting from available cameras.

Using pipewire-1.0.3-1.fc39.x86_64

The Bugbug bot thinks this bug should belong to the 'Core::WebRTC: Audio/Video' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → WebRTC: Audio/Video
Product: Firefox → Core

The severity field is not set for this bug.
:jib, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jib)

Jan, is this something you could try to repo?

Flags: needinfo?(jib) → needinfo?(jgrulich)

I've been testing BBB the whole time while developing PipeWire camera support and it's been always working.

What is your output from:
qdbus-qt5 --session org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Camera.IsCameraPresent

There is also a fix in xdg-desktop-portal that might be related: https://github.com/flatpak/xdg-desktop-portal/pull/1319. Any chance you can try it?

Flags: needinfo?(jgrulich)
Flags: needinfo?(be.0)

qdbus-qt5 --session org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Camera.IsCameraPresent prints false even when I have Kamoso open and accessing a camera feed via Pipewire (verified with qpwgraph).

There is also a fix in xdg-desktop-portal that might be related: https://github.com/flatpak/xdg-desktop-portal/pull/1319. Any chance you can try it?

It looks like that was backported to 1.18.3? I'll test that when xdg-desktop-portal 1.18.3 is available in Fedora. It doesn't seem to be in updates-testing yet.

Flags: needinfo?(be.0)

(In reply to Be from comment #6)

qdbus-qt5 --session org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Camera.IsCameraPresent prints false even when I have Kamoso open and accessing a camera feed via Pipewire (verified with qpwgraph).

Ok, this is what makes your camera broken in BBB and the issue is not in Firefox.

There is also a fix in xdg-desktop-portal that might be related: https://github.com/flatpak/xdg-desktop-portal/pull/1319. Any chance you can try it?

It looks like that was backported to 1.18.3? I'll test that when xdg-desktop-portal 1.18.3 is available in Fedora. It doesn't seem to be in updates-testing yet.

I have backported this fix to Fedora and it's in this update https://bodhi.fedoraproject.org/updates/FEDORA-2024-08fe18512d. Can you try it?

For F39 it's this one https://bodhi.fedoraproject.org/updates/FEDORA-2024-d56e82952e and it has already landed to stable repositories.

I updated to xdg-desktop-portal-1.18.2-6.fc39.x86_64 and qdbus-qt5 --session org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Camera.IsCameraPresent now prints true. BigBlueButton is able to find and use my camera (and it works when Kamoso is also accessing the camera, and with multiple Firefox tabs accessing the camera). Thanks!

Closing as invalid since it was fixed by an update to xdg-desktop-portal.

Status: UNCONFIRMED → RESOLVED
Closed: 6 months ago
Resolution: --- → INVALID

(In reply to Be from comment #9)

I updated to xdg-desktop-portal-1.18.2-6.fc39.x86_64 and qdbus-qt5 --session org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Camera.IsCameraPresent now prints true. BigBlueButton is able to find and use my camera (and it works when Kamoso is also accessing the camera, and with multiple Firefox tabs accessing the camera). Thanks!

Great!! I'm glad it works now.

You need to log in before you can comment on or make changes to this bug.