[Qt-jambi-interest] How to use Phonon module? Exmples?

Eskil Abrahamsen Blomfeldt eblomfel at trolltech.com
Wed Jul 16 09:25:08 CEST 2008


> http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/phonon/MediaObject.html
> http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/phonon/MediaSource.html
> http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/phonon/Path.html
> http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/phonon/VideoPlayer.html
> http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/phonon/VideoWidget.html
> .........
>
> Although , not all of these objects are present in QtJambi Phonon package.
>   

Hi, Luis.

What do you mean by this? All the classes you have listed above are 
available in the qtjambi-4.4.0_01.jar file in the Qt Jambi bundle.

>
> Phonon.MediaObject mediaObject = new Phonon.MediaObject(this);
>
> But i can't do new Phonon.MediaObject(this)
>   

MediaObject is a class inside the com.trolltech.qt.phonon package:

    import com.trolltech.qt.phonon.*;

    /* ... */

    MediaObject mediaObject = new MediaObject(this);

>
>
> Someone have examples of how to use Phonon in QtJambi?
>
>   

Unfortunately not all the documentation has been ported from C++ to Java 
yet, as this is a very time consuming job. It is however being worked on.

For examples on how to use Phonon, you can take a look at the source 
code for the examples MusicPlayer and MediaPlayer. The latter uses 
Phonon for playing video like you ask.

-- Eskil



More information about the Qt-jambi-interest mailing list