hi,


1. Phonon can play the media files that can be played by Windows Media Player .

2. Phonon supports a mime type video/x-ms-asf . I checked with
Qt Code:
  1. void HelloMeego::checkPhononCapabilities()
  2.  
  3. {
  4.  
  5. QStringList sl=Phonon::BackendCapabilities::availableMimeTypes();
  6.  
  7. qDebug() << sl;
  8. }
To copy to clipboard, switch view to plain text mode 

3. This link http://<b>http://www.bbc.co.uk/radio...ve/r5l.asx</b> plays in Windows Media Player and has a mime type video/x-ms-asf (.asx)

4. Check this link http://support.microsoft.com/kb/288102 for .asx mime type


Now if I play this link http://www.bbc.co.uk/radio/listen/live/r5l.asx using Qt Phonon, its not playing.
Here is my code
Qt Code:
  1. void HelloMeego::on_pushButton_8_clicked()
  2. {
  3. Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
  4.  
  5. // Phonon::VideoPlayer *myPlayer= new Phonon::VideoPlayer(Phonon::VideoCategory, this);
  6. Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(this);
  7. Phonon::createPath(mediaObject, videoWidget);
  8. ui->verticalLayout_2->addWidget(videoWidget);
  9. Phonon::AudioOutput *audioOutput =
  10. new Phonon::AudioOutput(Phonon::VideoCategory, this);
  11. Phonon::createPath(mediaObject, audioOutput);
  12. QString urlVideo ="http://www.bbc.co.uk/radio/listen/live/r5l.asx";
  13. Phonon::MediaSource source = Phonon::MediaSource(urlVideo);
  14. mediaObject->setCurrentSource(source);
  15.  
  16. mediaObject->play();
  17.  
  18. }
To copy to clipboard, switch view to plain text mode 


Please suggest me.