Results 1 to 3 of 3

Thread: Problems with phonon example

  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    506
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Problems with phonon example

    Hi,
    I'm running openSUSE 11 with Qt 4.4.1
    Qt Code:
    1. > rpm -qa|grep qt4
    2. libqt4-sql-4.4.1-25.1
    3. libqt4-devel-doc-4.4.1-27.1
    4. libqt4-sql-sqlite-4.4.1-25.1
    5. libqt4-x11-4.4.1-25.1
    6. libqt4-4.4.1-25.1
    7. libqt4-devel-doc-data-4.4.1-27.1
    8. libqt4-devel-4.4.1-25.1
    9. libqt4-qt3support-4.4.1-25.1
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. > rpm -qa|grep gstreamer -i
    2. libgstreamer-0_10-0.10.20-42.pm.1
    3. gstreamer-0_10-0.10.20-42.pm.1
    4. gstreamer-0_10-lang-0.10.20-42.pm.1
    5. gstreamer-0_10-utils-0.10.20-42.pm.1
    6. gstreamer-utils-0.10.20-42.pm.1
    7. phonon-backend-gstreamer-0_10-4.2.0-9.11
    8. gstreamer-0_10-plugins-good-0.10.8-42.pm.1
    9. gstreamer-0_10-plugins-base-lang-0.10.20-42.pm.1
    10. gstreamer-0_10-ffmpeg-0.10.5-42.pm.1
    11. gstreamer-0_10-plugins-base-0.10.20-42.pm.1
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. > rpm -qa|grep -i phonon
    2. libphonon4-4.2.0-9.11
    3. phonon-backend-gstreamer-0_10-4.2.0-9.11
    4. phonon-devel-4.2.0-9.11
    5. phonon-4.2.0-9.11
    To copy to clipboard, switch view to plain text mode 
    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 I added some debugging code but found no error, just the signal stateChanged (...) connected in constructor
    Qt Code:
    1. connect(metaInformationResolver, SIGNAL(stateChanged(Phonon::State,Phonon::State)),
    2. this, SLOT(metaStateChanged(Phonon::State, Phonon::State)));
    To copy to clipboard, switch view to plain text mode 

    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

  2. #2
    Join Date
    Jul 2008
    Posts
    47
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with phonon example

    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).

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    506
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Problems with phonon example

    Hi, one month and some updates later, phonon finally works for me

    Current packages:
    Qt Code:
    1. libphonon4-4.2.71-37.1
    2. phonon-backend-gstreamer-0_10-4.2.71-37.1
    3. phonon-devel-4.2.71-37.1
    4. phonon-4.2.71-37.1
    To copy to clipboard, switch view to plain text mode 

    Ginsengelf

Similar Threads

  1. I cannot run the phonon demos in the PXA270!Can someone help me?
    By Justin_W in forum Qt for Embedded and Mobile
    Replies: 8
    Last Post: 19th February 2010, 10:14
  2. Phonon error with dshow.h
    By aamer4yu in forum Installation and Deployment
    Replies: 7
    Last Post: 21st February 2009, 18:50
  3. phonon on QT4.4
    By coolk in forum Installation and Deployment
    Replies: 15
    Last Post: 15th January 2009, 13:38
  4. Phonon and Mac
    By SidGBF in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2008, 13:11
  5. Is it possible to stream data from device with phonon ?
    By Elder Orb in forum Qt-based Software
    Replies: 0
    Last Post: 24th July 2008, 19:58

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.