应用程序的专辑封面 - iPhone
我正在制作一个播放音频的应用程序...播放每个声音片段时我希望能够更改手机壁纸上的“专辑封面”...例如,当您在 iPod 应用程序上播放歌曲时,它会发生变化您的锁屏壁纸到专辑封面照片...那么当我的应用程序中播放音频时,我该如何为我的应用程序执行此操作,将锁屏壁纸暂时更改为专辑封面?有什么想法吗?我正在考虑播放一个音频文件,该文件实际上压缩了一张图片作为壁纸图像,就像一些 iTunes 歌曲一样,但我知道并非所有人都这样做,而且他们仍然会得到图像.. 嗯无论如何,我知道这是可能的,因为我拥有一些应用程序这样做...如果有人能想出任何办法,谢谢!
I am making an app that plays audio... with each sound piece playing I want to be able to change the "album cover" on the wallpaper of the phone... For example when you play a song on the iPod app it changes your lock screen wallpaper to an album cover photo... so how do I do this for my app, when audio is playing within my app changing the lock screen wallpaper temporarily to the album cover? Any ideas? I was thinking of playing an audio file that actually has a picture compressed into it as the wallpaper image like some iTunes songs but I know not all do that and they still get images.. hmmm Anyways I know it's possible because I own some apps that do that... Thanks if anyone can come up with anything!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在iOS5+中,您可以使用
MPNowPlayingInfoCenter
类来实现您想要的。在 iOS5 之前的版本中,这对于公共 API 是不可能的。更多信息可以在文档
In iOS5+ you can use the
MPNowPlayingInfoCenter
Class to achieve what you want. On version prior iOS5 this is not possible with public APIs.More Info can be found in the documentation