Qt Forum

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

    QWebview, HTTP proxy, html5 video does not work

    Qt WebKit
    2
    4
    3229
    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.
    • A
      anaksimandr last edited by

      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

      1 Reply Last reply Reply Quote 0
      • A
        AcerExtensa last edited by

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

        God is Real unless explicitly declared as Integer.

        1 Reply Last reply Reply Quote 0
        • A
          anaksimandr last edited by

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

          1 Reply Last reply Reply Quote 0
          • A
            AcerExtensa last edited by

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

            God is Real unless explicitly declared as Integer.

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