Add image on lock screen in iOS app, when app is running in background

后端 未结 2 502
执念已碎
执念已碎 2021-01-06 21:38

There are many question on site like

Programatically changing the iOS lock-screen ,

How to set lock screen , wallpaper and Ringtone programmatically in iPhon

相关标签:
2条回答
  • 2021-01-06 22:01

    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.

    0 讨论(0)
  • 2021-01-06 22:11

    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

    0 讨论(0)
提交回复
热议问题