Local file format
Solved
General and Desktop
-
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 ofQMediaPlaylist
If 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
n
a natural numberAny suggestion?
Thank you in advance