开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜