Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0 RC
-
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
- is required for
-
QTBUG-114963 Improved support of screen sharing extensions
- Open
- relates to
-
QTBUG-70077 QtWebEngine should provide a list of capture devices
- Closed
-
QTBUG-80054 [WebRTC] screencapture should bring up a selection dialog in webengine
- Closed
For Gerrit Dashboard: QTBUG-112142 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
442539,30 | Add new API for screen capturing | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
478255,14 | Add manual test for screen capturing | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
479928,1 | Adapt DesktopMediaList for WebEngine | 108-based | qt/qtwebengine-chromium | Status: ABANDONED | +2 | 0 |
493241,4 | FIXUP: Add minimal webrtcdesktopcapture api for hangout services extension | 112-based | qt/qtwebengine-chromium | Status: MERGED | +2 | 0 |
525805,2 | Add new API for screen capturing | 6.7 | qt/qtwebengine | Status: MERGED | +2 | 0 |
529567,2 | Add manual test for screen capturing | 6.7 | qt/qtwebengine | Status: MERGED | +2 | 0 |
529739,2 | Fix compilation if no qhttpserver | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
531791,2 | Fix compilation if no qhttpserver | 6.7 | qt/qtwebengine | Status: MERGED | +2 | 0 |