1
votes

I'm looking at the MPMusicPlayerController class, which lets you create an iPodMusicPlayer with a playbackState that is readonly. I'm wondering if there's a way for me to modify the playbackState elsewhere to change the state from MPMusicPlaybackStatePaused to MPMusicPlaybackStatePlaying.

The goal if this is to play iTunes music which is paused by the TriggerIO media player — currently it supports playing audio in your app by pausing background audio, but after my audio plays, I want to continue playing the background audio.

Thanks!

1
I think you're looking to do something more like an overlay, like Maps does. The player is assuming you want to actually play a song, which does not imply resuming a different apps player once yours is done. - film42
An app can control a song that is playing in iTunes. I know this because I have an app on my iPhone called "Car Tunes" that can be used to control the song that is currently playing. If pause a song with the built in "Music" app, I can unpause it with Car Tunes and vice versa. - vacawama

1 Answers

1
votes

I'm turning my comment into an answer because if found a bit more proof.

My assumption is that you're looking for something like background audio, or an audio overlay. Which, according to, How to play background audio in iOS with Trigger.io?, which was answered by a co-founder of trigger.io, it is not officially supported yet, but on their roadmap.