Important: Please read the Qt Code of Conduct -

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()->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="" + rxYouTube.cap(11) + "" ></iframe>"@
    But when I do something like this
    @QNetworkProxy 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