3

There are many question on site like

Programatically changing the iOS lock-screen ,

How to set lock screen , wallpaper and Ringtone programmatically in iPhone? All say that apple will reject if we modify the lock-Screen image.

But I seen it in many apps. Example Saavn is in AppStore.

In this if a song is playing and device is locked, It shows the image of the current album on the lock screen.

Please share if anybody know how it can be done. Thanks.

Community
  • 1
  • 1
HDdeveloper
  • 4,396
  • 6
  • 40
  • 65

2 Answers2

3

Music apps can change the lock screen wallpaper because iOS automatically displays the album artwork for the song/podcast/etc that's playing (see MPMusicPlayerController docs). As far as I know, it's not an API that's publicly available to developers.

Vinny Coyne
  • 2,365
  • 15
  • 24
1

The "podcaster" app (3rd party not apple) displays an image of the currently playing podcast. Podcast images are stored in the RSS feed and not in each mp3 so the app is dynamically telling the os which image goes with with mp3. Of course you can play "silence" out of the speaker but I don't think this is a clean solution

benathon
  • 7,455
  • 2
  • 41
  • 70