Originally Posted by
MasterBLB
Also,from what I know there will be issues to play .avi files via <video> tag,and that possibility is highly demanded in my application.
You'll be having issues in playing them (and all other) with the plugin api if you don't have a working plugin too.
This works for me without problems:
#include <QtWidgets>
#include <QWebView>
int main(int argc, char **argv) {
QWebView view;
view.
setUrl(QUrl::fromLocalFile("/tmp/vi/main.html"));
view.show();
return app.exec();
}
#include <QtWidgets>
#include <QWebView>
int main(int argc, char **argv) {
QApplication app(argc, argv);
QWebView view;
view.setUrl(QUrl::fromLocalFile("/tmp/vi/main.html"));
view.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
<html>
<body>
<video width="1920" height="1080" controls>
<source src="http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_surround.avi" type="video/mp4"/>
</video>
</body>
</html>
<html>
<body>
<video width="1920" height="1080" controls>
<source src="http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_surround.avi" type="video/mp4"/>
</video>
</body>
</html>
To copy to clipboard, switch view to plain text mode
Bookmarks