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
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();
}
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();
}
To copy to clipboard, switch view to plain text mode
Bookmarks