I want to play music when my application is in the background, so I installed
"background background"
in my info.plist application.
I want to set the audio category to kAudioSessionCategory_SoloAmbientSound
, because I want to respect the mute switch, and I don't want to mix with other applications.
Is it possible?
If I set the category to kAudioSessionCategory_MediaPlayback
, my application will be able to play music in the background, but when kAudioSessionCategory_SoloAmbientSound
, when I press the home button on the device, it stops playing (and when I return to the foreground it plays music).
So, I want to play music in the background and βrespectβ the mute state. Is it possible?
Thanks for your reply in advance!
source share