Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

Player do not show metadata image on the lock screen on Android

Open Mabudigital opened this issue 2 years ago • 0 comments

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

Mabudigital avatar Jan 02 '23 16:01 Mabudigital