How to access Metadata from audio files
-
@p3c0 okay that will be helpful.
MediaPlayer{ id: player; playlist: Playlist { id: playlist PlaylistItem { source: "qrc:/music/4.mp3"} PlaylistItem { source: "qrc:/music/5.mp3"} } } ListView { model: playlist; delegate: Text { font.pixelSize: 16; text: player.metaData.title+"\n"+player.metaData.albumArtist+"\n"+player.metaData.author; } } Rectangle { id: rectangle2 x: 182 y: 224 width: 78 height: 51 color: "#b35e5e" MouseArea { anchors.fill: parent; onPressed: { if (player.playbackState != Audio.PlayingState) { player.play() } else { player.pause(); } } } }