Quantcast
Channel: Qt DevNet forums: Qt WebKit
Viewing all articles
Browse latest Browse all 542

[QWebView] HTML5 video with Hardware Decoding

$
0
0
I use html5 to play a H.264 video in QWebView, but it uses software decode. How to use hardware decode instead? My main function and html are like below:  int main(int argc, char *argv[])  {   QApplication a(argc, argv);   QWebView *view = new QWebView();   view->setGeometry(0,0,1024,1000);   view->load(QUrl("qrc:/html5/html5_video.html?init=true"));   view->show();     return a.exec();  } <video width="854" height="480" src="file:///media/video/test.mp4" controls></video> Thanks!

Viewing all articles
Browse latest Browse all 542

Latest Images

Trending Articles



Latest Images