Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Trouble with videos and QWebView deployment

    Qt WebKit
    loadfinished qwebview
    2
    2
    1170
    Loading More Posts
    • 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
      JADesktopDev last edited by

      So I have a QWebView issue that has been frustrating me for a few days. I am trying to use a QWebView widget to show youtube videos as part of a tutorial. This works great on my development box, but whenever I deploy to another machine everything works except for flash and html5 videos. Pages with this type of content result in a QWebView::loadFinished(false) except for on my machine where they work. I am using MSCV2010_openGL qt 5.4.1(the prebuilt version) and qt creator.

      I am setting things up like this.

      QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
      webView->setAttribute(QWebSettings::PluginsEnabled, true);
      webView->setAttribute(QWebSettings::LocalStorageEnabled, true);
      webView->setAttribute(QWebSettings::JavaEnabled, true);
      webView->setAttribute(QWebSettings::JavascriptEnabled, true);
      webView->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, true);

      QString url = "http://www.youtube.com/embed/MyVideo";
      webView->load(QUrl(url));

      and I make my deployment with:
      windeployqt --webkit2

      Using dependency walker I see no real differences between the machine it works on and the ones it doesn't. Do I need to deploy additional files to enable flash or HTML5 videos?

      1 Reply Last reply Reply Quote 0
      • D
        dojoy last edited by

        Maybe the following link is about the same topic....

        http://stackoverflow.com/questions/27738508/qt5-deployed-qtwebengine-project-not-playing-html5-videos

        1 Reply Last reply Reply Quote 0
        • First post
          Last post