iOs SDK. Shared audio session while playin background audio -


I am facing a very interesting problem and now I am trying to understand how to sort it is. In fact, when it comes in the background, my application plays sound. Everything is fine, but when I run an application like YouTube it does interposition for my audio session. I use audio session delegation methods to capture this moment. My question is how do I reset my audio session in the background after killing YouTube? I have tried to:

  NSError * err = noErr; [[Avidio Session Shared Instance] Set Active: Yes Error: & amp ;;]; If (err! = NoErr) {NSLog ([err description]);    

OK, as I understand, to create audio sessions with other applications, Special property will need to be set as:

  Allow UInt32 = true; Audio sessionsproperty (kAudioSessionProperty_OverrideCategoryMixWithOthers, sizeof (allows approval), & amp; allowMixing;);   

And now I can see that my application plays audio in the background, even if I start YouTube. The problem is that it plays audio together :( I can also listen to audio and youtube of my application, there is no interruption in audio session. Strange problem.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -