QWebview, HTTP proxy, html5 video does not work



  • Hi All,

    I'm using QWebView to show chat log.

    @webView = new QWebView(this);
    QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
    webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    webView->settings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
    webView->settings()->setAttribute(QWebSettings::PrivateBrowsingEnabled, true);
    webView->settings()->setMaximumPagesInCache(0);
    webView->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);@

    If the proxy for QWebView is not set the HTML code like this works fine.
    @<iframe width="100%" height="315" frameborder="0" allowfullscreen src="http://www.youtube.com/embed/" + rxYouTube.cap(11) + "" ></iframe>"@
    But when I do something like this
    @QNetworkProxy proxy;
    proxy.setType(QNetworkProxy::HttpProxy);
    proxy.setHostName("ip");
    proxy.setPort(port);
    proxy.setUser("login");
    proxy.setPassword("passsword");
    QNetworkProxy::setApplicationProxy(proxy);@

    YouTube tells me that my browser does not supports HTML5.

    How I can solve this problem?

    PS Platform: Qt 4.8, Windows, VC



  • Have you tested this proxy on other HTML5 browser?
    Is it transparent proxy?



  • Yes, it is transparent proxy - SQUID.
    In other browsers proxy works fine (tested google chrome, maxthon).



  • Have no idea how could I help you then.... You should maybe fire a BUG on Qt's bugtracker...


Log in to reply
 

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