Playing a stream using phonon module
Hi i want to play a strem in qtopia core ( built for n800 - phonon module ) but i am not able to play it ... Works fine if the source is a file ....
The code goes as follows
Code:
MainWindow::MainWindow()
{
Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
Phonon::AudioOutput *audioOutput =
new Phonon::AudioOutput(Phonon::MusicCategory, this);
Phonon::createPath(mediaObject, audioOutput);
const QUrl url
("http://www.example.com/stream");
mediaObject->setCurrentSource(url);
mediaObject->play();
}
Re: Playing a stream using phonon module
Can you access the file over network at all? For instance by downloading it using QHttp?
Re: Playing a stream using phonon module
Ya i am able to download a file using QHttp.
Should we enable any mime types exclusively for playing a stream.
Re: Playing a stream using phonon module
It could be that your Phonon backend doesn't support remote streams. Try querying it for its capabilities.
Re: Playing a stream using phonon module
I am using the same program for x11-4.4.1 version where the phonon is able to play the stream. The same program with qtopia-core-4.4.1 is not playing the stream.
Both the x11 and qtopia-core are configured with the same options
I will query the further capabilities of Phonon ...