PDA

View Full Version : does QMediaPlayer work with URLs in QT 4.7.0 and QT mobility 1.1?



Gajendra
23rd February 2011, 13:14
I am trying to play the streams from Internet Radio servers on Symbian handsets and I used the QMediaPlayer API for the same. However it is not giving any error and audio is also not being played. Please do let me know if anyone has able to play the streams using QMediaPlayer.



QMediaPlayer *player = new QMediaPlayer(this);
player->setMedia(QUrl("http://localhost/TheComedyChannel.mp3"));
player->setVolume(50);
player->play();
qDebug() << player->metaData(QtMultimediaKit::SampleRate);
int err = player->error();
qDebug() << "Error : " << err;

hrn2k1
21st April 2011, 06:19
Hi
On Simulator this code gives an error
in Application Output says defaultServiceProvider::requestService(): no service found for - "com.nokia.qt.mediaplayer"
and player.errorString() show The QMediaPlayer object does not have a valid service

Whats the problem? please help.