Re: No interruption events when pausing music using headphone controller
Re: No interruption events when pausing music using headphone controller
- Subject: Re: No interruption events when pausing music using headphone controller
- From: Beinan Li <email@hidden>
- Date: Wed, 29 May 2013 10:42:29 -0400
Thanks Kevin.
About the AVAudioSession interruption part, I thought adding a listener function in AudioSessionInitialize() call does the same thing as adding a delegate that handles begin/endInterruption:. We added this listener in our C++ CoreAudio client code. However, that callback seems to only respond to interruptions such as incoming phone calls and alarms, but is not called when we do remote controls.
About your remote control part, if I understand you correctly, it's a Cocoa thing and there is no way to handle it inside our CoreAudio C++ code, right? I don't see our app icon in the media control bar you described there. I guess that would be where the problem is because doing media control with the double-click home button=>swipe left gives us the exact same problem.
Thanks,
Beinan