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.
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 -
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();@