I want to use QT to record an internet audio stream. So far I can play the stream:
player = new QMediaPlayer();
//connect(player, SIGNAL(positionChanged(qint64)), this, SLOT(positionChanged(qint64)));
player
->setMedia
(QUrl("http://idobiradio.idobi.com/;stream.mp3"));
player->setVolume(50);
player->play();
player = new QMediaPlayer();
//connect(player, SIGNAL(positionChanged(qint64)), this, SLOT(positionChanged(qint64)));
player->setMedia(QUrl("http://idobiradio.idobi.com/;stream.mp3"));
player->setVolume(50);
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
Bookmarks