Force using the phone-xine-backend (Xine backends works but gstreamer is default)
I'm trying to play a simple wav file using the following code :
Code:
Phonon::MediaObject *music =
Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource("/usr/lib/openoffice/basis3.1/share/gallery/sounds/drama.wav"));
music->play();
and i'm getting this error :
Code:
(<unknown>:17501): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed
I got Amarok working with the xine backend, but NOT with gstreamer backend.
Unfortunatly, even if xine is default for Amarok, it appears that my application is trying to use GStreamer. How do I set the backend in the code?
Re: Force using the phone-xine-backend (Xine backends works but gstreamer is default)
I found a workaround :
Code:
sudo apt-get remove phonon-backend-gstreamer
Although now my app can play files on my computer, that is not a very elegant solution for distributing my app.
Anyone knows how Amarok does to prompt a phonon backend list dialog and set the default backend ?