So I was thinking another way of doing this would be to use the NetworkAccessManager, however I can't seem to work out what I need to do.
QNetworkRequest request
(QUrl(QString("http://idobiradio.idobi.com/;stream.mp3")));
QNetworkAccessManager *networkManager = new QNetworkAccessManager(this);
connect(networkManager, SIGNAL(readyRead), this, SLOT(streamStarted()));
request.
setRawHeader(QByteArray("Icy-MetaData"),
"8192");
request.
setRawHeader(QByteArray("Accept"),
"*/*");
request.
setRawHeader(QByteArray("Connection"),
"Keep-Alive");
request.setHeader(QNetworkRequest::UserAgentHeader, "WinampMPEG/5.09");
networkManager->get(request);
QNetworkRequest request(QUrl(QString("http://idobiradio.idobi.com/;stream.mp3")));
QNetworkAccessManager *networkManager = new QNetworkAccessManager(this);
connect(networkManager, SIGNAL(readyRead), this, SLOT(streamStarted()));
request.setRawHeader(QByteArray("Icy-MetaData"), "8192");
request.setRawHeader(QByteArray("Accept"), "*/*");
request.setRawHeader(QByteArray("Connection"), "Keep-Alive");
request.setHeader(QNetworkRequest::UserAgentHeader, "WinampMPEG/5.09");
networkManager->get(request);
To copy to clipboard, switch view to plain text mode
I'm not entirely sure what I need to put in the slot.
Bookmarks