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
Qt Code:
  1. void MainWindow::on_pushButton_clicked()
  2. {
  3.  
  4.  
  5. QString url = "rtsp://rm.bbc.co.uk/radio2/r2online_id.rm";
  6.  
  7. QWidget *dummy = new QWidget();
  8. dummy->setDisabled(true);
  9. Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
  10. Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(dummy);
  11. Phonon::createPath(mediaObject, videoWidget);
  12. Phonon::MediaSource source = Phonon::MediaSource(url);
  13. mediaObject->setCurrentSource(source);
  14. mediaObject->play();
  15.  
  16.  
  17.  
  18. }
To copy to clipboard, switch view to plain text mode 


Please suggest me.