Details
Description
I use webengineview to load web pages in my app, and I have enabled the desktop captrue feature
QWebEngineSettings::defaultSettings()->setAttribute(QWebEngineSettings::ScreenCaptureEnabled, true);
when the web page request the permission for sharing screen by using getDisplayMedia interface, the app only request
QWebEnginePage::DesktopVideoCapture
not
QWebEnginePage::DesktopAudioVideoCapture
, I found that the MediaDesktopAudioCapture permission request is triggered only when
if (request.audio_type == blink::MEDIA_GUM_DESKTOP_AUDIO_CAPTURE && request.video_type == blink::MEDIA_GUM_DESKTOP_VIDEO_CAPTURE) return {WebContentsAdapterClient::MediaDesktopAudioCapture, WebContentsAdapterClient::MediaDesktopVideoCapture};
what I can do if I want to have the QWebEnginePage::DesktopAudioVideoCapture permission request.
Attachments
For Gerrit Dashboard: QTBUG-85890 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
309369,2 | Detect the combination of audio and video from getDisplayMedia API | 5.15 | qt/qtwebengine | Status: MERGED | +2 | 0 |