Local file format
-
I am slowly coming to the solution of the age-old problem of reading metadata. These are my experimental observations:
reader is a in a istance of
QMediaPlayer, and playlist is a istance ofQMediaPlaylistIf I write
reader->setMedia(QUrl::fromLocalFile("D:/mysong.mp3"));The metadata is read correctly on the signal
QMediaPlayer::LoadedMedia.But when I try to load the file from the playlist, the code doesn't work
reader->setMedia((playlist->media(n)));with
na natural numberAny suggestion?
Thank you in advance