Results 1 to 2 of 2

Thread: Force using the phone-xine-backend (Xine backends works but gstreamer is default)

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows

    Question 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 :

    Qt Code:
    1. Phonon::MediaObject *music =
    2. Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource("/usr/lib/openoffice/basis3.1/share/gallery/sounds/drama.wav"));
    3. music->play();
    To copy to clipboard, switch view to plain text mode 

    and i'm getting this error :
    Qt Code:
    1. (<unknown>:17501): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed
    To copy to clipboard, switch view to plain text mode 

    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?

  2. #2
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: Force using the phone-xine-backend (Xine backends works but gstreamer is default)

    I found a workaround :

    Qt Code:
    1. sudo apt-get remove phonon-backend-gstreamer
    To copy to clipboard, switch view to plain text mode 

    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 ?

Similar Threads

  1. Override streaming in QuickTime phonon backend
    By ChrisPeto in forum Qt Programming
    Replies: 1
    Last Post: 31st March 2011, 14:33
  2. Replies: 11
    Last Post: 11th July 2010, 21:44
  3. Embedded Qt OpenGL Backend
    By ebranson in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 15th March 2010, 17:53
  4. how to use gstreamer with Qt
    By qwakaw in forum Qt Programming
    Replies: 9
    Last Post: 27th August 2008, 14:41
  5. Own backend for SVG files
    By alfblt16 in forum Qt Programming
    Replies: 0
    Last Post: 2nd October 2006, 08:17

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.