Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Does QMediaPlayer work with URLs in QT 4.7.0 and QT mobility 1.1?
Qt 6.11 is out! See what's new in the release blog

Does QMediaPlayer work with URLs in QT 4.7.0 and QT mobility 1.1?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 1 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #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.

    @
    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;
    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;
    @

    [EDIT: code formatting, use @-Tags, Volker]

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      hi gajendra, could you enclose the code in @ tags

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        [EDIT: deleted double content. Please use the edit link on the right of your post to change formatting, Volker]

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved