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)
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?Qt Code:
playlist = new QMediaPlaylist; player = new QMediaPlayer; } qDebug() << "Loading Playlist" << source; playlist->load(source); if(playlist->error()) qDebug() << playlist->errorString(); else qDebug() << "Playlist loaded"; playlist->setCurrentIndex(1); player->setPlaylist(playlist); }To copy to clipboard, switch view to plain text mode
Thanks!
Bookmarks