It’s been a happy few weeks. Right before the Christmas holidays, Qt Jambi was nominated for the Jolt awards (”the Oscars of the industry”, we’re more or less nominated for an Oscar, tell your friends), and, as you may well be aware, Qt 4.4 will ship with the excellent Phonon Multimedia framework as announced in the beginning of December.
For those of you who hadn’t heard, the Phonon framework is a cross-platform class library which can (among other things) enable your application to play any media files supported by a system backend. By default, this backend is Microsoft DirectShow on Windows, GStreamer on Linux and QuickTime on Mac OS X.
Now, where it makes sense and is possible, we make the Qt Jambi APIs “identical” to the Qt APIs. This means that if you have experience with one framework, you should be able to learn the other one with very little effort, granted, of course, that you already know both programming languages well enough. In fact, porting examples from Qt for C++ to Qt Jambi (which I’ve done a fair number of times by now) is primarily a search/replace of arrows to dots, and is so simple it’s comparable to what scientists call “doing nothing.” The latest addition to Qt Jambi 4.4 is the com.trolltech.qt.phonon package, and this blog is mainly a celebration of the fact that I just finished porting the Media Player demo from C++ to Java, and that it works.
So, without further ado, here’s a brief low-res video of what you can expect. It shows the Qt Jambi media player running through Eclipse, the application playing a movie, and me moving some sliders to alter the brightness, contrast, saturation etc. of the movie stream. I forgot to turn off my microphone, which is why the audio is terrible, so please disregard that.
That’s it. I hope you find it impressive and I hope you will have some use for it when Qt 4.4 and Qt Jambi 4.4 are out later this year.
6 Responses to “Qt Jambi at the movies”
Hey that’s cool! I’m seriously thinking about replacing the GStreamer Sound backend in Classpath with one based on this, if else, just for the fact that it would work out of the box on any platform supported by qt jambi.
It would be interesting to study your source code, also, I think we had to solve some similar issues and I’m curious about your approach.
Keep up the good work!
Mario
Is there a way to have access to QtJambi 4.4 preview or svn access, like with the QT4.4 preview ?
On the website of Trolltech you can download a trechnology preview of Qt 4.4. It is also possible to download nightly snapshots. Will this also be available for QtJambi 4.4? And if so, by when can we expect these?
Yeah, but can you put a VideoWidget on QGraphicsView? (And have it work?)
ptitbul, Dimitri: There’s no nightly snapshots of Qt Jambi at the moment. We will hopefully have a technology preview of Qt Jambi 4.4 out by the end of February. Since we have to wait until the Qt codebase is frozen before we can start mapping new features, the Qt Jambi release cycle is always some weeks behind Qt’s release cycle.
scorp1us: I would have to say no at this point. Our backend-developers are looking into it, but I believe it does not currently work, as the video is painted directly to the device and does not go through the transformations in the view.
I’d just like to add that we’re looking into making QtJambi snapshots available. Right now, I can’t say more of what format they will be, but hopefully we’ll have news soon