Hi there,

I would like to load a pls file into my QMediaPlayer using QMediaPlaylist. First of all is pls supported? (I think so because I found a bug report but I am not sure)
This is my code: (source is correct. Because if the source file is a m3u it works)
Qt Code:
  1. AudioPlayer::AudioPlayer(QObject *parent) :
  2. QObject(parent){
  3. playlist = new QMediaPlaylist;
  4. player = new QMediaPlayer;
  5. }
  6.  
  7. void AudioPlayer::setSource(const QString &source){
  8. qDebug() << "Loading Playlist" << source;
  9. playlist->load(source);
  10. if(playlist->error())
  11. qDebug() << playlist->errorString();
  12. else
  13. qDebug() << "Playlist loaded";
  14. playlist->setCurrentIndex(1);
  15. player->setPlaylist(playlist);
  16. }
To copy to clipboard, switch view to plain text mode 
But I get the error that I provided an empty file. Can someone tell me what the proper way is to load a pls file?

Thanks!