I want to use QT to record an internet audio stream. So far I can play the stream:

Qt Code:
  1. player = new QMediaPlayer();
  2. //connect(player, SIGNAL(positionChanged(qint64)), this, SLOT(positionChanged(qint64)));
  3. player->setMedia(QUrl("http://idobiradio.idobi.com/;stream.mp3"));
  4. player->setVolume(50);
  5. player->play();
To copy to clipboard, switch view to plain text mode 

However, I want to take that data and record it to an MP3. How would I do that? I've been looking at using QIODevice but can't quite work out how to extract the data stream from the media player.

Thanks