简体   繁体   中英

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.

Using MPMusicPlayerController's pause/play methods works with the iPod music. In fact, 'pause' will pause Pandora without trouble also; however, 'play' resumes the iPod instead of Pandora.

Pointers to relevant documentation are appreciated.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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