Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Trouble with videos and QWebView deployment
Forum Updated to NodeBB v4.3 + New Features

Trouble with videos and QWebView deployment

Scheduled Pinned Locked Moved Qt WebKit
loadfinishedqwebview
2 Posts 2 Posters 1.4k Views 1 Watching
  • 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
    JADesktopDev
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      dojoy
      wrote on last edited by
      #2

      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
      0

      • Login

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