iphone app: how to deactivate and activate ipod app
my voip app is configured to kAudioSessionCateg开发者_开发技巧ory_PlayAndRecord category and kAudioSessionProperty_OverrideCategoryMixWithOthers audio session property.
During voip call, when voice playback and record is happening, ipod music is also mixing with voice.
How to make ipod music to deactive during voice call and re-active after completion of my voice call.
how about following:
[[MPMusicPlayerController iPodMusicPlayer] pause];
at the beginning of your voip call and
[[MPMusicPlayerController iPodMusicPlayer] play];
at the end of your voip call.
精彩评论