Results 1 to 2 of 2

Thread: does QMediaPlayer work with URLs in QT 4.7.0 and QT mobility 1.1?

  1. #1
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default does QMediaPlayer work with URLs in QT 4.7.0 and QT mobility 1.1?

    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.

    Qt Code:
    1. QMediaPlayer *player = new QMediaPlayer(this);
    2. player->setMedia(QUrl("http://localhost/TheComedyChannel.mp3"));
    3. player->setVolume(50);
    4. player->play();
    5. qDebug() << player->metaData(QtMultimediaKit::SampleRate);
    6. int err = player->error();
    7. qDebug() << "Error : " << err;
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Feb 2011
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: does QMediaPlayer work with URLs in QT 4.7.0 and QT mobility 1.1?

    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.

Similar Threads

  1. Allows HTML urls in QTableWidget and QLabel
    By petrusPL in forum Newbie
    Replies: 1
    Last Post: 9th January 2011, 12:28
  2. qt-mobility
    By untitled in forum Qt for Embedded and Mobile
    Replies: 19
    Last Post: 20th November 2010, 20:00
  3. Somebody help me, about QT mobility
    By HiJack in forum Qt Tools
    Replies: 2
    Last Post: 24th July 2010, 09:14
  4. How to play various media formats in Qmediaplayer
    By S P in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2010, 13:28
  5. Replies: 1
    Last Post: 3rd December 2009, 10:15

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.