Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136997

Support window capturing on Linux+Wayland

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9
    • Multimedia
    • None
    • Linux/Wayland

      This issue is specific to Linux when running Wayland.

      Currently we only support capturing screens on Wayland, with no option to support window-capturing. The implementation relies on a content-picker, and currently this only allows you choose a screen. The backend implementation we use has a very simple API to enable window capturing: https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.ScreenCast.html.

      While enabling this should be straight forward, I attempted to make this patch. However, there was some issues related to the resolution of the captured video, making the resulting output partially corrupted. This should be possible to solve with some minor fixes.

      If we allow this, we make it possible to capture windows on Linux+Wayland. Ideally, this would happen through QWindowCapture instead, but our support for content-pickers is generally slim at the moment. It should be possible to enable this through QScreenCapture.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtmultimediateam Qt Multimedia Team
            npskalerud Nils Petter Skålerud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes