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="" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
<!doctype html>
<head>
<title>Live audio </title>
</head>
<body>
<audio controls preload="none">
<source src="" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
To copy to clipboard, switch view to plain text mode
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"
}
}
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"
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks