开发者

pause ipod when playing voice from our apps, and resume after that

I would like to make an application that prompt a voice. the scenario is like this: 1. ipod playing music 2. user start my apps 3. my apps is deciding to开发者_StackOverflow中文版 prompt a voice 4. ipod music become MUTE or SOFTER VOICE 5. my apps prompt a voice until finish 6. ipod music RESUME to original volume

any idea?


it is actually kinda easy. i found the answer from stackoverflow.com/questions/4138247/… . we can get the instance of ipod the code should be like this: [[MPMusicPlayerController iPodMusicPlayer] pause]; //do whatever you want [[MPMusicPlayerController iPodMusicPlayer] play];

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜