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

@kalismeras61 facing same issue with the **android** and **ios** please reopen this issue.and i have also followed all the things which are mentioned in the document. still background music is getting stopped when we play some sound by asset audio player. In video player we have this kind of option to mix sound with other playing audio which are playing but in audio player we can not do this

Open BlackStriker99 opened this issue 2 years ago • 3 comments

    @kalismeras61  facing same issue with the **android** and **ios** please reopen this issue.and i have also followed all the things which are mentioned in the document. still background music is getting stopped when we play some sound by asset audio player. In video player we have this kind of option to mix sound with other playing audio which are playing but in audio player we can not do this
Screenshot 2022-10-01 at 3 17 13 PM

Originally posted by @BlackStriker99 in https://github.com/florent37/Flutter-AssetsAudioPlayer/issues/423#issuecomment-1264308739

BlackStriker99 avatar Dec 13 '22 06:12 BlackStriker99

@BlackStriker99 did you have any luck on this? This plugin seems outdated now

mohsin2596 avatar Dec 26 '22 08:12 mohsin2596

Did you tried audioFocusStrategy in open method ?

 await _assetsAudioPlayer.open(

      audioFocusStrategy: AudioFocusStrategy.request(
        resumeAfterInterruption: true,
        resumeOthersPlayersAfterDone: true,
      ),
    );

kalismeras61 avatar Dec 26 '22 09:12 kalismeras61

@kalismeras61 still doesn't work. Background music still stops and doesn't resume if asset audio player is paused or stopped (Android)

remarkked avatar Nov 20 '23 05:11 remarkked