jeromexiong / audio_manager

A flutter plugin for music playback, including notification handling.
MIT License
100 stars 53 forks source link

On app load, the plugin stops any background audio? #57

Closed stanojevicboban closed 3 years ago

stanojevicboban commented 3 years ago

Hi, I have a flutter app where only a small part of it is using this component to reproduce audio file.

However, when I play music in a different app, and then load the app, the audio coming from another app is stopped. In the events in XCode I see > > > > > Audio Route Changed output that is coming from the AudioManager.swift.

Is there a way to allow the background music to continue playing while the app is in foreground?

FloPMT commented 3 years ago

@jeromexiong I created PR #59 to fix this

jeromexiong commented 3 years ago

@jeromexiong I created PR #59 to fix this

tks,but there are some small problems with your PR, so i would fix them without merging