[Qt-interest] Phonon and Shoutcast-Streams
Ulrich Geilmann
ugeilmann at googlemail.com
Mon Dec 15 00:59:43 CET 2008
Hi.
I would like to play Shoutcast-Streams with Phonon, but I ran into some
trouble:
I play a url to a pls-playlist given by shoutcast.com as follows:
QUrl url
(http://yp.shoutcast.com/sbin/shoutcast-playlist.pls?rn=1480&file=filename.pls)
m_mediaObject->setCurrentSource (url);
m_mediaObject->play();
This does not always work. Sometimes, but not always, the
setCurrentSource method takes forever to return... i do not know why, it
maybe a backend problem (i'm using qt on mac os)
I then tried downloading the pls file and reading the concrete stream
url myself. It seems to be http://208.53.158.213:80. Giving iTunes this
url (which should use the very same backend as Phonon, namely QuickTime)
it perfectly plays the stream. But when i try to play it with Phonon
using the very same code as above i get the error message "Could not
open media source".
Any suggestions?
Regards, Ulrich
More information about the Qt-interest-old
mailing list