Does QtWebkit 2.2.1 fix the HTML5 media support problem?
-
wrote on 27 Apr 2012, 15:07 last edited by
This does not work for me. I am using Visual Studio 2010 on Windows7/64. The browser does not try to load QtMultimediaKit1.dll (checked with SysInternal's ProcMon). I have the Qt components on drive D (D:\Qt\4.8.1 and d:\QtMobility).
-
wrote on 15 May 2012, 10:31 last edited by
Me too, I tried to test HTML5 by use sample [formextractor] in Webkit sample then add
<video width="400" height="300" controls="controls">
<source src="myvideo.mp4" type="video/mp4" />
</video>
to form.html It is not woking. -
wrote on 23 May 2012, 05:13 last edited by
By my successful example of playing a video tag, just like...
<video controls>
<source src="./MyVideo.mp4" type="video/mp4">
</video>PS1. I am using a XP 32-bit system with VS2008 to do these things...
PS2. If you could see a play button or seeking bar but there's no any video playing, it could be you didn't install a correct codec. -
wrote on 23 May 2012, 07:08 last edited by
Thank you very much for your replying , LeoTseng
I tried your suggestion but it is still not working on my environment.
Nothing is display on executed program.PS:
- I am using The Qt SDK version 1.2.1 released on April 11th
- Windows 7, VS 2010
-
wrote on 25 May 2012, 01:39 last edited by
oh...I did not download or install the Qt SDK. Instead, I installed the Qt libraries for Windows (VS2008 version). You mentioned that you're using the platform of Win7, VS2010. I think that would be OK as well, because one of my colleagues is using the same platform like yours to do the same thing. BUT he didn't install Qt SDK but using Qt libraries. (His platform is Win 7 64-bit, VS2010)
-
wrote on 25 May 2012, 08:40 last edited by
One step further for me:
I used qt-everywhere-opensource-src-4.8.2.zip, configure and nmake as usual, The I used qt-mobility-opensource-src-1.2.0.zip, configure -prefix D:\QtMobility, nmake , nmake install and added D:\QtMobility\bin and D:\QtMobility\lib to PATH. Then I did another configure and nmake for qt-everywhere-opensource-src-4.8.2. (It may be sufficient to just rebuild webkit.)
When I pointed the demos\browser to http://html5test.com a got 326 points + 3 bonus points. The page says: Video 21/31, video element Yes, Subtitle support No, Poster image support Yes, MPEG-4 support No, H.264 support No, Ogg Theora support No, WebM support No; Audio (+1 bonus points ) 20, audio element Yes, PCM audio support No, AAC support No, MP3 support Yes, Ogg Vorbis support No, WebM support No.
The missing codec support is surprising, because I had installed DirectShow Filters for WebM, DivX H.264 and Mpeg4.
http://www.youtube.com/html5 says that the browser supports the Video tag, h.264 and WebM, but if I join the HMTL5 I cannot play any video.
-
wrote on 25 May 2012, 08:40 last edited by
Thank you for your information,
I do not continue to try using html5 to play video in QtWebkit, now I am using [Phonon multimedia] then embed Phonon media player to QtWebkit, it is working.
To do that,
I referred to qmediaplayer(example of Qt) and this link
http://daniel-albuschat.blogspot.jp/2008/12/embedding-qt-widgets-into-qtwebkit.html -
wrote on 25 May 2012, 09:22 last edited by
hmuelner,
I got a almost identical result of when I am using qt browser to enter the website you mentioned, even worse than yours... I got 321 points + 3 bonus. And the video score was 21/31, this part was completely identical as you have described. Even though, I can still use a <video> tag to play a webm format movie or mp4 (AVC+AAC format) movie inside the Qt's browser. So I think you don't have to totally trust that score from that website, at least it works to me & my colleague. -
wrote on 1 Apr 2013, 22:03 last edited by
Thanks in part to some of the helpful hints on this page I've been able to get HTML5 video working in our project. It involves building Qt + qt-mobility, and also a bug fix in qt-mobility. See http://blog.enthought.com/open-source/fun-with-qtwebkit-html5-video/ for a blog post where I have documented what worked for us.
-
wrote on 9 Apr 2013, 14:39 last edited by
I followed the instructions on this page and managed to build Qt-4.8.4, QtMobility and QtWebkit on Windows-7 (64) using VS-2010, including the patches for QtMobility and installing lavfilters. The Qt demo browser works with the page http://camendesign.com/code/video_for_everybody/test.html and on http://www.youtube.com/html5, but when I load the page http://html5test.com the browser crashes.
With SysInternals' dbgview I see the message: "Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there."