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!
↧