Commit 56bc69f5 authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Enable ScreenCapture attribute in WebEnginePart

In theory, this should enable screen sharing using platform such as
Google Meet and Jitsi. According to my tests, however, it doesn't always
work. I think the reason are limitations in QtWebEngine itself.

BUG: 450386
parent 61a2e897
Pipeline #140221 passed with stage
in 4 minutes and 28 seconds
......@@ -21,6 +21,7 @@
#include <QWebEngineProfile>
#include <QWebEngineUrlScheme>
#include <QWebEngineSettings>
WebEnginePartControls::WebEnginePartControls(): QObject(),
m_profile(nullptr), m_cookieJar(nullptr), m_spellCheckerManager(nullptr), m_downloadManager(nullptr),
......@@ -73,6 +74,7 @@ void WebEnginePartControls::setup(QWebEngineProfile* profile)
m_cookieJar = new WebEnginePartCookieJar(profile, this);
m_spellCheckerManager = new SpellCheckerManager(profile, this);
m_downloadManager= new WebEnginePartDownloadManager(profile, this);
m_profile->settings()->setAttribute(QWebEngineSettings::ScreenCaptureEnabled, true);
}
WebEnginePartDownloadManager* WebEnginePartControls::downloadManager() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment