I've searched the Internet for a while to try and find an answer to this. If you open up the multitasking bar and swipe to the left there are music controls that can be used by whatever app is playing music (ie Music, Pandora, etc.). I have not yet discovered a way to use these in my own music playing application. Does anyone know how to do that?
Asked
Active
Viewed 1,200 times
1 Answers
1
You should take a look at this example in the Apple API docs examples. It's basically what you want, a small audio player that interfaces with iTunes, lets you pick songs from the library and behaves much like the standard music player, including the music controls callbacks.

jupp0r
- 4,502
- 1
- 27
- 34
-
It seems like that is only available for MPMediaPlayer? I could be wrong. Is there anything for that would work for AVAudioPlayer and AVPlayer? – Letrstotheprez Feb 04 '12 at 14:50
-
From what I understand, all the functionality for this is contained in MediaPlayer.framework, so you're probably right. I understand that a lot of audio apps use MPMediaPlayer for playing back audio that is expected to require user control from time to time (pause, forward, etc). AVAudioPlayer, etc seem to be used for more integrated audio needs (ie game music, etc). – jupp0r Feb 07 '12 at 12:42