Important: Please read the Qt Code of Conduct -

How to play HTML5 video using QWebKit

  • 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.

    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

  • 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->setGeometry(50,50, 800, 600);


Log in to reply