Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can I enable WebRTC in QtWebKit 3.0? if Yes, how?

Can I enable WebRTC in QtWebKit 3.0? if Yes, how?

Scheduled Pinned Locked Moved General and Desktop
webkitqtwebkitwebrtcqt5.4.1qml
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joelmar
    wrote on 17 Jun 2015, 11:11 last edited by joelmar
    #1

    Here my simple app

    import QtQuick 2.0
    import QtQuick.Controls 1.0
    import QtWebKit 3.0
    
    ScrollView {
        width: 640
        height: 480
        WebView {
            id: webview
            url: "http://opentokrtc.com/test"
            anchors.fill: parent
            experimental.userAgent:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36"
            onNavigationRequested: {
                // detect URL scheme prefix, most likely an external link
                var schemaRE = /^\w+:/;
                if (schemaRE.test(request.url)) {
                    request.action = WebView.AcceptRequest;
                } else {
                    request.action = WebView.IgnoreRequest;
                    // delegate request.url here
                }
            }
        }
    }
    

    Q1 - Does QtWebKit 3.0 have support for WebRTC? if Yes how do I enable it?

    Q2 - How do I Allow WebRTC webcam request programmatically (using QML or not)?

    In other words

    Is there a way to programmatically set Chromium Web Engine policy e.g. VideoCaptureAllowed

    Q3 - If solutions for Q1 and Q2 on desktop, may they work on Single Board Computers (RISK ARM)?

    1 Reply Last reply
    0

    1/1

    17 Jun 2015, 11:11

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved