Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QWebKit, Qt 5.0.2, videos.
I have no idea how to include any video into pages that are shown by QWebView. Neither HTML5-video tag (with any codec) nor Flash-player doesn't work. I've read that it can't play HTML5 video (I've found also kind of a patch, but it doesn't want to compile anyway). But what is wrong with Flash? I try to play it with the following code.
@QString _client = "http://www.chemgapedia.de/vsengine/info/en/help/requirements/flash.html";
Who can help? Most likely if there is some way to make HTML5-video work.
Maybe your flash.html have problems.
Please check this example:
from PySide import QtGui, QtWebKit
TESTURL = "http://camendesign.com/code/video_for_everybody/test.html"
app = QtGui.QApplication(sys.argv)
view = QtWebKit.QWebView()
url = sys.argv if len(sys.argv) > 1 else TESTURL
You can find more about this here:
Is this tutorial for qt5? I thought it's for previous versions, 'cause qt-mobility doesn't want to be compiled (it wants QtMultimediaKit, which is part of previous ones).
And can you provide the following code for c++/Qt, not for python.
Can you check this link:
Tell me if helps, otherwise I can assist you to show a html5 file with video working
Hm... I've watched it. Yes, he shows that he use some videos on HTML5. But I didn't understand if it is under QtWebKit. Anyway, there is no any explanation how to do such in things in this video.
Yes it's inside QtWebKit.
Then why it works on his presentation and doesn't work on mine?
Or then.... In other words. What steps should I do to insert working HTML5-video and(!) Flash-video. (I need both but I have nothing actually). What steps? I thought it must work out of box.
anubhav87 last edited by
i have written the QWebview application used to display the video when i run it in the development system it works fine but when i move it to different CLEAN system it only plays audio but it dont show the video,
QWeview is loading the url from the server which consist the html video tag through which i am loading the video