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

the html file is as follows
Qt Code:
  1. <!doctype html>
  2. <head>
  3. <title>Live audio </title>
  4. </head>
  5.  
  6. <body>
  7. <audio controls preload="none">
  8. <source src="" type="audio/mpeg">
  9. Your browser does not support the audio element.
  10. </audio>
  11.  
  12. </body>
  13. </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 :

Qt Code:
  1. import QtQuick 2.0
  2. import QtMultimedia 5.5
  3. import QtWebView 1.1
  4.  
  5.  
  6. Item{
  7.  
  8. WebView {
  9. id: webView
  10. anchors.fill: parent
  11. url: "qrc:/documents/live_audio.html"
  12. }
  13.  
  14. }
To copy to clipboard, switch view to plain text mode