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

[Qt WebEngine] ScreenCapture should provide a way to select window/screen to capture

    XMLWordPrintable

Details

    • 2444455d2 (112-based), de57e1b0b (dev), a82e90223 (6.7), 8bedcaac0 (dev), 7e17f11b3 (6.7), d1b9391d0 (dev), 234c6f4f9 (6.7)

    Description

      When using MediaDevices API to capture screen inside the WebEngine, Qt does not provide a way for users to select screen/window to grab the stream. It always returns the main screen to capture instead.
      Here is the quote from specification of this API:

      The MediaDevices interface's getDisplayMedia() method prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.

      I've attached examples examples.tar.xz using this API, both QWidgets (QWebEngineView) and QML versions (WebEngineView), neither of these examples provide source selection dialog. But Chrome on the other hand shows this dialog

      NOTE: since Qt does not fully support the spec, this ticket set to be a "Bug".

      Observed behaviour: the stream selection dialog does not appear

      Expected behaviour: either

      • Qt should display a dialog to select screen/window to grab,
      • or Qt should provide some API for doing this on the application side.
         

      Attachments

        Issue Links

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

          Activity

            People

              mnegyokru Martin Negyokru
              umogslayer Vlardimir Bayrashevskiy
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              9 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes