Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Unable to use <audio> and <video> tag in webview

Unable to use <audio> and <video> tag in webview

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 447 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.
  • QjayQ Offline
    QjayQ Offline
    Qjay
    wrote on last edited by
    #1

    Hey all i have a very simple html file which i want to be displayed in webview .

    the html file is as follows

    <!doctype html>
    <head>
    	<title>Live audio </title>
    </head>
    
    <body>
            <audio controls preload="none">
    <source src="http://dl.jatt.link/cdn8.jatt.link/057e667d427bd8fd751b66d2e7376183/wsezv/Main Tera Tu Meri-(Mr-Jatt.com).mp3" type="audio/mpeg">
    Your browser does not support the audio element.
    </audio>
    
    </body>
    </html>
    
    

    the html file works fine when i load it in chrome or firefox . But when i load it in webview in my application it doesn't play it . Any idea why ??

    this is how i am loading the file :

    import QtQuick 2.0
    import QtMultimedia 5.5
    import QtWebView 1.1
    
    
    Item{
    
        WebView {
               id: webView
               anchors.fill: parent
               url: "qrc:/documents/live_audio.html"
           }
    
    }
    
    
    
    1 Reply Last reply
    0

    • Login

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