Open Bug 1867836 Opened 2 years ago Updated 2 years ago

Support for rotated screen sharing in Wayland

Categories

(Core :: WebRTC, enhancement)

Firefox 120
enhancement

Tracking

()

People

(Reporter: alphare33, Unassigned)

Details

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

Steps to reproduce:

I opened a screenshare session on https://mozilla.github.io/webrtc-landing/gum_test.html and selected one of displays rotated to 90°.

Actual results:

The screenshare worked, with the output not rotated.

Expected results:

The output should be rotated according to the transformed passed along through pipewire. The wl_output_transform field should be used inside of third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc, guarded by a version check of pipewire=0.3.62

See https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1423.

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

Component: Untriaged → WebRTC
Product: Firefox → Core
Severity: -- → N/A
Status: UNCONFIRMED → NEW
Ever confirmed: true

It looks like GNOME already rotates the video so that the client doesn't have to rotate it. I wonder how much leeway the specs gives (or if there is somehow a standard way of informing that the buffer has been pre-rotated).
I am using sway, a wl-roots based compositor.

Reported as an upstream (WebRTC) bug as per the request of one of its maintainers. The fix should be backported to Firefox once implemented.

https://bugs.chromium.org/p/webrtc/issues/detail?id=15708

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