Question

MPMusicPlayerController does not control the podcast app in iOS 7. Is there a way to pause, start, and seek a playing podcast in iOS 7 (podcast was started playing with the Podcast app).

If I do [[MPMusicPlayerController iPodMusicPlayer] play] it stops the podcast and starts a music MP3.

[[MPMusicPlayerController applicationMusicPlayer] play] does not work either.

No correct solution

OTHER TIPS

You have to set the playlist to podcasts to play podcasts, like so:

MPMusicPlayerController  *player = [MPMusicPlayerController iPodMusicPlayer];
MPMediaQuery *query = [MPMediaQuery podcastsQuery];
MPMediaItemCollection *collection =
    [MPMediaItemCollection collectionWithItems:[query items]];

[player setQueueWithItemCollection:collection];

[player play];

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top