How do I allow WebRTC webcam request using when QtWebEngine (when using QML plugin or not)?
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

On a browser you'd have this

Is there a way to programatically set Chromium Web Engine policy e.g. VideoCaptureAllowed
                        
open fancybrowser project add in mainwindow.cpp inside function MainWindow::MainWindow(const QUrl& url)
also add
in mainwindow.cpp and mainwindow.h below
then it all works!!