Flutter-AssetsAudioPlayer
Flutter-AssetsAudioPlayer copied to clipboard
Player do not show metadata image on the lock screen on Android
Flutter Version
My version : 3.3.10
Lib Version
My version : 3.0.6
Platform (Android / iOS / web) + version
Platform : Android 11
Describe the bug
The device lock screen shows a generic image but not the assigned metadata image.
Small code to reproduce
Future<void> openNew({required newRadio}) async {
try {
await _player.open(
Audio.liveStream(stream,
metas: Metas(
id: stream.id.toString(),
title: stream.name,
album:stream.album,
artist: stream.artist,
image: MetasImage.network(stream.image),
));
showNotification: true,
notificationSettings: const NotificationSettings(
playPauseEnabled: true,
prevEnabled: false,
nextEnabled: false,
stopEnabled: true),
autoStart: false,
playInBackground: PlayInBackground.enabled,
headPhoneStrategy: HeadPhoneStrategy.pauseOnUnplug,
);
} catch (t) {
//stream unreachable
}
}
I think it should show the MetasImage image in the lock screen is possible.
Thank you