79434818

Date: 2025-02-13 00:51:58
Score: 1
Natty:
Report link

Apart from all these changes mentioned in doc: https://pub.dev/packages/just_audio_background

I needed MainActivity to extend AudioServiceActivity and also neede MediaTag() to those audios that need to be played in background

await _audioPlayer.setAudioSource(
  AudioSource.asset(
    "assets/audio/db12/$currentKey.wav",
    tag: MediaItem(
      id: currentKey,
      album: "album",
      title: "title",
      artist: "flutter jackson",
    ),
  ),
); 
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sandhu Inc