Closed kronik closed 7 years ago
We used to have AVAudioSessionCategoryAmbient
, but that was changed to Playback
in #22 and again to PlayAndRecord
in #32. See those PRs for the motivations why we changed this.
However, maybe it would be worth exposing a way for users to specify which mode to use?
@jpsim Exposing it as a property (or a constructor parameter) sounds really good.
@jpsim any thoughts on PR?
Merged.
Music stops when app starts and sets buttonHandler. Figured out that session category is set incorrectly. Tried with AVAudioSessionCategoryAmbient and music works fine now.