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. QWebview, HTTP proxy, html5 video does not work
QtWS25 Last Chance

QWebview, HTTP proxy, html5 video does not work

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 2 Posters 3.4k Views
  • 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 Offline
    A Offline
    anaksimandr
    wrote on last edited by
    #1

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

      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
      0
      • A Offline
        A Offline
        anaksimandr
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #4

          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
          0

          • Login

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