[Qtwebengine] Allow WebRTC webcam request using when QtWebEngine

joël maranhão joel.maranhao at gmail.com
Wed Jun 17 17:38:53 CEST 2015


How do I Allow WebRTC webcam request in QtWebEngine (using QML plugin or

My code sample webengine.qml

import QtQuick 2.1
import QtQuick.Controls 1.1
import QtWebEngine 1.0

ApplicationWindow {
    width: 800
    height: 600
    color: "lightgray"
    visible: true
    WebEngineView {
        id: webview
        url: "https://opentokrtc.com/test"
        anchors.fill: parent

On my Mac Yosemite, running the command:

 /usr/local/Cellar/qt5/5.4.0/bin/qmlscene webengine.qml

but the video won't start because it's waiting for "Allow" camera, but not
dialog pops to let me do that.

In other words, is there a way to programmatically set Chromium Web Engine
policy e.g. VideoCaptureAllowed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20150617/a73e1991/attachment.html>

More information about the QtWebEngine mailing list