Search code examples
ioscocoa-touchmedia-player

How to integrate iOS app with playback controls in lock screen and bottom panel?


I want to use Play/Stop, Next, Prev buttons, seeker & show album arts in "standard" iOS user interface, just like many other apps.

What classes should I use?


Solution

  • You need MPNowPlayingInfoCenter for setting the current album art.

    And you can use - (void) remoteControlReceivedWithEvent:(UIEvent *)event for handeling the playback controls. This is all explained in Remote Control Events

    A simple search on Google would have found this.