How to get audio metadata from its path in flutter

2019-08-02 13:49发布

问题:

I have path of the audio file like "sdcard://music/ABC.mp3" . How to get other details such as album, artist, duration etc from that path.

回答1:

You can use fluter_music_player plugin to play, pause, album artist, duration etc. It's support both ios and android.

See Flutter Music Player this sample Music player flutter project using this plugin