Flutter-AssetsAudioPlayer
Flutter-AssetsAudioPlayer copied to clipboard
MetasImages.file or MetasImages.asset doesn't work
Hi dear Developer,
On the last version assets_audio_player: ^3.0.6
I think there is bug in loading music's cover in iOS music notification,
await player.open( Audio.file(music.path, metas: Metas( title: music.title ?? '', artist: music.artist ?? '', album: music.album ?? '', image: MetasImage.file('${music.path}.jpg'), onImageLoadFail: const MetasImage.network( 'https://songdewnetwork.com/sgmedia/assets/images/default-album-art.png'))), showNotification: true, notificationSettings: const NotificationSettings( playPauseEnabled: true, nextEnabled: true, seekBarEnabled: true, prevEnabled: true, stopEnabled: true, ));
Here is my code part, MetasImage.file('${music.path}.jpg'), doesn't load the music's cover, even onImageLoadFail doesn't load default cover image.
iOS version: 15
Cheers!