Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting the MetaData from a streaming url
Forum Updated to NodeBB v4.3 + New Features

Getting the MetaData from a streaming url

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 668 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.
  • S Offline
    S Offline
    sergio_101
    wrote on last edited by sergio_101
    #1

    Hi, all..

    I am building an internet radio application, and it I can play and mp3 stream, stop the stream, and adjust the volume. Next, I need to able to get the metadata from the stream.

    I am using the QMediaPlayer like so:

        station = new RadioStation("Bagel Radio", "http://ice1.somafm.com/bagel-128-aac");
        player = new QMediaPlayer;
        
       //and to play:
    
        player->setMedia(QUrl(this->station->getStreamUrl()));
        player->play();
    

    and to check on the metadata, I am doing this when the stop button is pressed.. just to make sure i am getting some metadata back:

        qDebug() << "MetaData Available: " + QString::number(player->isMetaDataAvailable());
        qDebug() << "Audio Available: " + QString::number(player->isAudioAvailable());
        player->stop();
    

    and I get a"0" for isMetaDataAvailable.

    I know that this stream has metadata as any other player that i put that stream in can see the metadata.

    Thanks!

    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