Any ways for QtWebKit playing HTML5 video without installing flash player
I know that QtWebKit-2.2 is supposed to support for HTML5 media (audio/video), but not now.
Therefore I tried Qt4.7.4 with simple code below.
According to “http://www.youtube.com/html5”, my example browser supports “Video tag” and “H.264”. I thought that means I do not need to enable flash plugins to play youtube videos. But I was wrong; appending “&html5=True” to the video’s address does not work at all.
Is there any code missing or should I enable anything to play youtube video without using the flash plugin?
Here is my code:
it looks like that qtwebkit cann’t support video tag now ~~
hmm, but it must http://trac.webkit.org/wiki/QtWebKitFeatures22#WebDeveloperFeatures
As far as I know, WebKit supports video tag. In case of Linux it uses GStreamer to display video content.
You can check if your browser supports it with
HTML5 Test [html5test.com]
HTML5 Test [html5test.com]As far as I know, WebKit supports video tag. In case of Linux it uses GStreamer to display video content. You can check if your browser supports it with
I checked through QWebView and there isn’t support in audio/video (But there is on Google Chrome which uses WebKit too). And what is it using on Windows? Maybe I need install something?
Neither Qt 5.0 beta does not handle HTML5 video/audio? That’s really strange. Hmm… may it be caused by not working multimedia plugin? (I think, this makes problems)….
I think this trouble only on Windows (and maybe on Mac). One guy on irc channel answered me that “<tronical> Twice: sorry, it’s not implemented on Windows :(”
So I don’t know what to do with my program which must view local html5-files.. So maybe I need to migrate from qt..
P.S: what multimedia plugin?
“<Twice> hi, do you know why it’s not implemented on Windows?
<tronical> it’s a rather complicated piece that’s simply not been written yet
<tronical> sadly there is no backend in webkit that can easily be re-used
<Twice> are you Qt developer or you know you just know it?
<tronical> I’m a Qt developer
<Twice> so I can’t use Qt for building cross-platform html5-viewer?
<tronical> indeed, I’m afraid you can’t use Qt very well for that right now
<Twice> and will it be in Qt 5.0 final release or you dont know?
<tronical> I’m pretty sure it won’t be in the final Qt 5.0.0 release”
In addition, with Qt 5 you will have possibility to use WebKit2 with has different API and different process management than already know WebKit1 with is in Qt 4.X
That really make things more complicated ,especially when you get used to old API that pretty well expose all WebKit elements to Qt world.