Closed Bug 1869748 Opened 11 months ago Closed 11 months ago

Missing placeholder video device from enumerateDevices()

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1869042

People

(Reporter: david.turner, Unassigned)

Details

Attachments

(1 file)

Attached file enumerate_devices.html

Steps to reproduce:

  • I'm testing with the latest bookmarks/central on an aarch64 Raspberry Pi 4 using Raspberry Pi OS bookworm (based on debian bookworm).
  • The system has 5 V4L2 video capture devices, 2 audio capture devices, and 1 pipewire/libcamera video capture device.
  • media.webrtc.camera.allow-pipewire is set to true.
  • The mozilla GUM camera test detects all the devices and the pipewire webcam works fine.

I open a fresh Firefox instance and run the attached reproducer.

Actual results:

I see 2 audio devices and no video devices. The exact output is:

Device type audioinput: id ZmB7s+AFwLcVIFRzHPFq5E9btvLRqLqkQAbQ+Su5nAc= label ''
Device type audioinput: id 7wXgfY4cCVbxIZMfotGurMHa8LJOlQTkny4Ik6fMcy8= label ''

Expected results:

I would expect to see two audio devices and one placeholder video device.

This is breaking Google Meet on this platform, because it sees no cameras available and so does not do a GUM request.

CC Andreas: new bug as requested, and I've confirmed the issue still occurs with latest bookmarks/central. Please let me know if any other information or debugging would be useful.

Flags: needinfo?(apehrson)

After reading https://jgrulich.cz/2023/11/24/pipewire-camera-support-in-firefox-2/ I decided to check my IsCameraPresent result from xdg-desktop-portal, and weirdly it's coming back as False, despite the pipewire webcam working just fine in the mozilla GUM test. So this might not actually be a Firefox bug - I'll dig into XDP and try to work out what's going on there.

Flags: needinfo?(apehrson)

Confirmed that this is an XDP issue on my end (one of a long-running series of weird races between pipewire and xdg-desktop-portal). Sadly even when the placeholder appears correctly Google Meet still doesn't work, but it looks like that's Meet's fault rather than Firefox's, I don't think Meet correctly handles the placeholder device.

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

Indeed, see bug 1869042.

Duplicate of bug: 1869042
Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: