PDA

View Full Version : Problems with phonon example



Ginsengelf
6th September 2008, 21:39
Hi,
I'm running openSUSE 11 with Qt 4.4.1

> rpm -qa|grep qt4
libqt4-sql-4.4.1-25.1
libqt4-devel-doc-4.4.1-27.1
libqt4-sql-sqlite-4.4.1-25.1
libqt4-x11-4.4.1-25.1
libqt4-4.4.1-25.1
libqt4-devel-doc-data-4.4.1-27.1
libqt4-devel-4.4.1-25.1
libqt4-qt3support-4.4.1-25.1

> rpm -qa|grep gstreamer -i
libgstreamer-0_10-0.10.20-42.pm.1
gstreamer-0_10-0.10.20-42.pm.1
gstreamer-0_10-lang-0.10.20-42.pm.1
gstreamer-0_10-utils-0.10.20-42.pm.1
gstreamer-utils-0.10.20-42.pm.1
phonon-backend-gstreamer-0_10-4.2.0-9.11
gstreamer-0_10-plugins-good-0.10.8-42.pm.1
gstreamer-0_10-plugins-base-lang-0.10.20-42.pm.1
gstreamer-0_10-ffmpeg-0.10.5-42.pm.1
gstreamer-0_10-plugins-base-0.10.20-42.pm.1

> rpm -qa|grep -i phonon
libphonon4-4.2.0-9.11
phonon-backend-gstreamer-0_10-4.2.0-9.11
phonon-devel-4.2.0-9.11
phonon-4.2.0-9.11
I played around a little with Phonon - or at least I tried to.
I compiled the capabilities example and it runs fine. It lists all my sound devices and a long list of supported MIME types.
After that I compiled the music player example. Again it compiles and runs. But when I try to add a file, the dialog pops up, I select a file, press OK, and nothing happens:eek: I added some debugging code but found no error, just the signal stateChanged (...) connected in constructor

connect(metaInformationResolver, SIGNAL(stateChanged(Phonon::State,Phonon::State)),
this, SLOT(metaStateChanged(Phonon::State, Phonon::State)));

never fires, the state of metaInformationResolver is 0 (Phonon::LoadingState).

I tried various file types, ogg, mp3, wav, ac3, always the same result.
I can play all these files with xmms or MPlayer, so no problem on this side.

Any suggestions?

Ginsengelf

muellerp
8th September 2008, 13:09
Try different BE.

Try update KDE4.1.1 (at least the phonon part), maybe the bug has been fixed.

And: Musicplayer had a bug, which was there when selecting a dir and not a file.

Xine-BE has an issue with having multiple mediaobjects opened/used at the same time.
I.e. playing and getting metainformation.

In my code it doesn't work with Xine as promised/documented by Phonon so I serialised the access (first meta, then playing).

Ginsengelf
4th October 2008, 14:10
Hi, one month and some updates later, phonon finally works for me :D

Current packages:

libphonon4-4.2.71-37.1
phonon-backend-gstreamer-0_10-4.2.71-37.1
phonon-devel-4.2.71-37.1
phonon-4.2.71-37.1


Ginsengelf