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: Kevin Dixon <email@hidden>
- Date: Tue, 28 May 2013 18:37:49 -0700
The routes represent the "physical" path the audio takes after it leaves your application. It probably has nothing to do with your problem at hand.
You should have a delegate attached to the
AVAudioSession. Add a delegate which implements -(void)beginInterruption
and -(void)endInterruptionWithFlags:(NSUInteger)flags
Furthermore, the "focus" for the remote control API is determined by several things.
1. you must called [[UIApplication sharedApplication] beginReceiginvRemoteControlEvents]
2. you must override your application's -(BOOL)canBecomeFirstResponder method
3. call [self becomeFirstResponder]
you will then get called on -(void)removeControlReceivedWithEvent:(UIEvent*)event
you can see if your app is receiving remote control events if you double-click the home button, then swipe left to see the media controls. If your app icon is there, you are receiving the events.
Hope that helps
-Kevin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden