RESOLVED DUPLICATE of bug 244004 290841
[GStreamer] Can't detect any camera device - Connection with PipeWire Bug
https://bugs.webkit.org/show_bug.cgi?id=290841
Summary [GStreamer] Can't detect any camera device - Connection with PipeWire Bug
vbuchara31
Reported 2025-04-01 06:02:25 PDT
Created attachment 474790 [details] GStreamer connection bug that has been occurring Overview: GStreamer can't connect with Pipewire through the GStreamer PipeWire Plugin, thus not detecting any camera device. Steps to Reproduce: 1. Setup an Ubuntu 24.04.2 LTS 2. Install Gnome Web Epiphany using Flatpak 3. Try using a site that requests camera use, like https://mozilla.github.io/webrtc-landing/gum_test.html. 4. Additionally, you can test other applications on Flatpak that uses camera, like Cheese or Firefox, to verify if they are working as intended . Actual Results: No cameras are detected. GStreamer fails to connect with PipeWire. Expected Results: Camera is detected, where GStreamer connects successfully with PipeWire. Build Date & Hardware: Ubuntu 24.04.2 LTS. The Epiphany version I tested on uses libwebkitgtk-6.0.so.4.11.5, in the org.gnome.Platform/x86_64/48. Additional Information: I have been trying to use the Gnome Web Epiphany browser recently, which uses WebKitGTK, but I found a persistent issue with the camera detection, where it doesn't recognize my webcam. After using 'getUserMedia', it throws an 'OverconstrainedError', despite the camera being detected by all other applications that uses Pipewire. By debugging further, I detected the problem is in the connection of the GStreamer with Pipewire, where it fails to create a core, thus failing to connect. One related problem that was occurring and might be related is, on the initialization of Wireplumber, it gives the following warning: "WpPortalPermissionStorePlugin... Failed to call Lookup... No entry for camera". The versions of my packages are as follows: Epiphany: 48 PipeWire: 1.0.5 Wireplumber: 0.4.17 xdg-desktop-portal: 1.18.4 xdg-desktop-portal-gtk: 1.15.1 gstreamer1.0-pipewire: 1.0.5-1ubuntu3
Attachments
GStreamer connection bug that has been occurring (28.11 KB, image/png)
2025-04-01 06:02 PDT, vbuchara31
no flags
Michael Catanzaro
Comment 1 2025-04-01 06:28:23 PDT
Hi, WebRTC is not supported, so I'm just going to close this. The latest status update is: https://wpewebkit.org/about/faq.html#what%E2%80%99s-the-status-regarding-webrtc%3F
Michael Catanzaro
Comment 2 2025-04-01 06:31:17 PDT
Um, well, I see we really do surprisingly support getUserMedia, so I'll reopen this.
Michael Catanzaro
Comment 3 2025-04-01 06:31:26 PDT
.
Philippe Normand
Comment 4 2025-04-01 06:31:48 PDT
This should work once 2.50 is out. You can try in Web Canary already, but the current PipeWire version in the runtime is too old and buggy and the video is not smooth... *** This bug has been marked as a duplicate of bug 244004 ***
Philippe Normand
Comment 5 2025-04-01 06:34:00 PDT
(In reply to Michael Catanzaro from comment #2) > Um, well, I see we really do surprisingly support getUserMedia, so I'll > reopen this. Yes MEDIA_STREAM is on, so access to camera/display with getUserMedia/getDisplayMedia should work if the UA handles permission requests correctly, but indeed that's only part of the features needed for WebRTC, so you cannot create a PeerConnection yet with builds from stable branch and default CMake options.
vbuchara31
Comment 6 2025-04-01 08:32:12 PDT
I managed to make the camera work, but only once and I'm not sure what made it possible, so yeah, it's very possible. Current documentation most of the time says it doesn't support WebRTC though, which is kinda misleading.
vbuchara31
Comment 7 2025-04-01 08:37:22 PDT
(In reply to Philippe Normand from comment #4) > This should work once 2.50 is out. > > You can try in Web Canary already, but the current PipeWire version in the > runtime is too old and buggy and the video is not smooth... > > *** This bug has been marked as a duplicate of bug 244004 *** What Canary version you mean? Epiphany Canary or WebKitGTK Canary? Thank you for the replies, anyways.
Philippe Normand
Comment 8 2025-04-01 10:49:03 PDT
The former. The latter doesn't exist per-se. Ephy Canary are nightly flatpak Ephy builds bundling webkitgtk builds from main.
Philippe Normand
Comment 9 2025-04-01 10:50:35 PDT
(In reply to vbuchara31 from comment #6) > I managed to make the camera work, but only once and I'm not sure what made > it possible, so yeah, it's very possible. > > Current documentation most of the time says it doesn't support WebRTC > though, which is kinda misleading. Well, access to capture devices alone is not sufficient for WebRTC. You need the whole ICE/RTP/SCTP/SDP/etc stack for WebRTC.
Note You need to log in before you can comment on or make changes to this bug.