AVAudioSessionSilenceSecondaryAudioHintNotification never called
AVAudioSessionSilenceSecondaryAudioHintNotification never called
- Subject: AVAudioSessionSilenceSecondaryAudioHintNotification never called
- From: Beinan Li <email@hidden>
- Date: Thu, 15 Jan 2015 13:38:49 -0500
Hi CoreAudio,
I registered the AVAudioSessionSilenceSecondaryAudioHintNotification callback,
hoping it would get called when my app is foreground and I start playing music using
the remote-control on the earbud. However the callback never got called.
I also tried from task-switcher or Control Centre but neither worked.
My code in my object class' init: for registering the observer:
self.m_session = [AVAudioSession sharedInstance];
...
...
[notificationCenter addObserver: self
selector: @selector (SilenceSecondaryAudioHintCallback:)
name: AVAudioSessionSilenceSecondaryAudioHintNotification
object: self.m_session];
and the observer method in the same class:
- (void) SilenceSecondaryAudioHintCallback:(NSNotification *)notification {
NSLog(@"SilenceSecondaryAudioHintCallback");
}
I'd appreciate it if anyone can point me to the right direction.
_______________________________________________
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