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. How to play HTML5 video using QWebKit
Forum Updated to NodeBB v4.3 + New Features

How to play HTML5 video using QWebKit

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 1 Posters 1.7k Views 1 Watching
  • 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
    aashish.lg
    wrote on last edited by
    #1

    I have created one QtWebkit based app , and trying to load below mention URL, which if we open in Firefox , it will show HTML5 video.

    http://www.youtube.com/watch?v=JYc2jP4LLGo&html5=True

    In my application I am getting youtube html5 player get loaded, but it is not displaying any video content.

    Machine :- Windows 7 X64, Windows7 ultimate X86
    Qt5.1 SDK

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aashish.lg
      wrote on last edited by
      #2

      I tried even in the browser sample application which comes along with the Qt SDK installtion.
      I am getting the same result as my app is.

      Note :- I am getting the player loaded but it is not displaying any video
      below mention is the code which I wrote

      @
      QWebView *view = new QWebView();
      QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
      view->settings()->setAttribute(QWebSettings::PluginsEnabled, true);

      view->load(QUrl("http://www.youtube.com/watch?v=cTl3U6aSd2w&html5=True"));
      view->setGeometry(50,50, 800, 600);
      view->show();

      @

      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