Trouble with videos and QWebView deployment



  • 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?




Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.