I’d like to make my app use the audio buttons on the lock screen while multitasking.
(Yes, like Pandora.)
What API am I looking to use?
I’d like to make my app use the audio buttons on the lock screen
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See the Remote Control of Multimedia docs. Basically, you just need to call
-beginReceivingRemoteControlEventson your shared application instance, then register something (probably your main view controller) as the first responder and implement the-remoteControlReceivedWithEvent:method on it. You will get events both from the lock-screen controls and from the headset clicker, as well as the control buttons to the left of the multitasking drawer. To play audio while your application isn’t foremost, you should also check out this information on background audio.