开发者

iphone app: how to deactivate and activate ipod app

开发者 https://www.devze.com 2023-04-08 17:32 出处:网络
my voip app is configured to kAudioSessionCateg开发者_开发技巧ory_PlayAndRecord category and kAudioSessionProperty_OverrideCategoryMixWithOthers audio session property.

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

精彩评论

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

关注公众号