With latest Flash player installed, and enable the Plugins, my simple example can play youtube videos
OS: windows 7
Qt: 4.7.4 (both 32 & 64bit works)
However, according to "http://www.youtube.com/html5", my example browser supports "Video tag" and "H.264", I was wondering why can't I just DISABLE the Plugins and play the video as usual? I have followed the procedure of " Watch a Video in YouTube's HTML5 Player" http://googlesystem.blogspot.com/2010/08/watch-video-in-youtubes-html5-player.html
but not work at all~
Here is my code:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
QWebView *view = new QWebView();
view->load(QUrl("http://www.youtube.com/watch?v=cTl3U6aSd2w&html5=True"));
view->show();
return a.exec();
}
Is there any code missing or I should enable anything else?
Thanks.