PDA

View Full Version : RTSP Streaming



somnathbanik
12th November 2010, 10:40
Hi,
I am trying to stream RTSP link
I tried this code but not working, but the same code is working for other file streaming link wma, mp3, etc.
Here is the code

void MainWindow::on_pushButton_clicked()
{


QString url = "rtsp://rm.bbc.co.uk/radio2/r2online_id.rm";

QWidget *dummy = new QWidget();
dummy->setDisabled(true);
Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(dummy);
Phonon::createPath(mediaObject, videoWidget);
Phonon::MediaSource source = Phonon::MediaSource(url);
mediaObject->setCurrentSource(source);
mediaObject->play();



}


Please suggest me.

high_flyer
12th November 2010, 10:53
Read about "Backends" and "Querying Backends for Support" here:
http://doc.trolltech.com/4.7/phonon-overview.html#phonon-overview

somnathbanik
12th November 2010, 11:28
Read about "Backends" and "Querying Backends for Support" here:
http://doc.trolltech.com/4.7/phonon-overview.html#phonon-overview

Got you means it will not work now.

high_flyer
12th November 2010, 11:35
No, I meant you should READ what is in the link - THERE it will tell you how to know what can work and what not, why, and how to make it work if it doesn't.
What you can play is dependent on the backends that you have on your system.