ios - iPhone restore AudioSession in Play&Record after playing youtube video -


Manage the interruption of audio sessions (set as play and record category) in my VoIP app in iOS 5.x I have a problem in When I have a call in progress, going back to the background and starting the YouTube app, the audio session is started-the blockage comes and I can stop the current call. The problem is that when I return to the foreground and want my call reactive (without hitting the YouTube app, putting it in the background first): There is no end-blocking callback and even if I Forcing the previous audio session to be activated, it returns an error.
I know that audio processing is probably in other process (AudioSessionGatePropti (with KAdioActionPropertyAffordIndia Playing, ...), but they do not.If I manually kill a YouTube app then the inter-blockage would be instead And there is no problem.

Since no one normally kills the app manually, how do I restore the audio session of my call I have examined other examples and Viber works properly and can "block" in some way inter-blockage.

Another strange behavior is that if I Also setting the "permission mixing" category in the audio session, this comp is ignored by interfering in iOS 4.x (takes control of YouTube audio resources), while it works in iOS 4.x , As I call contemporary audio and youtube I have heard a similar problem. I stopped it and (again) blocked callback. Resolved it by starting my audio unit in

Comments