How can I use the Lock Screen iPod Controls for my own App?
I tried MPNowPlayingInfoCenter, but if I set the information it won’t be displayed anywhere; Not on the lock-screen and not in airplay on AppleTV.
I use the AVPlayer to play my audio files.
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.
Take a look at the Remote Control of Multimedia documentation.
Here’s how to listen for remote control events in a
UIViewControllersubclass. First, make your controller participate in the responder chain, otherwise the events will be forwarded to the app delegate:Where appropriate, tell the application to start receiving events and make your controller the first responder:
Then respond to them: