简体   繁体   English

从iPhone应用程序暂停/恢复Pandora

[英]Pause/Resume Pandora from iPhone application

I'm writing an application that occasionally records the user's voice. 我正在编写一个偶尔记录用户语音的应用程序。 During recording, I would like the application to pause whatever music happens to be playing (pandora, ipod, etc) and when recording is finished, I want it to resume that music for the user. 在录制期间,我希望该应用程序暂停正在播放的任何音乐(潘多拉,ipod等),并且在录制完成后,我希望它为用户恢复该音乐。

Using MPMusicPlayerController's pause/play methods works with the iPod music. 使用MPMusicPlayerController的暂停/播放方法可与iPod音乐配合使用。 In fact, 'pause' will pause Pandora without trouble also; 实际上,“暂停”也会使潘多拉无忧无虑地停下来。 however, 'play' resumes the iPod instead of Pandora. 但是,“播放”将恢复iPod而不是Pandora。

Pointers to relevant documentation are appreciated. 指向相关文档的指针表示赞赏。

我停止研究,但我不相信有办法做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM