ios - 为背景音频设置锁屏图像

标签 ios objective-c uiwebview

我想自定义背景音乐播放的锁屏图像。我使用了 [[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo] 但锁屏上没有任何变化。为澄清起见,音频播放来自 UIWebView(Youtube 播放器 API)。提前谢谢你。

最佳答案

音乐应用程序可以更改锁屏壁纸,因为 iOS 会自动显示正在播放的歌曲/播客等的专辑封面(请参阅 https://developer.apple.com/library/ios/documentation/MediaPlayer/Reference/MPMusicPlayerController_ClassReference/Chapters/Reference.html)。据我所知,它不是对开发人员公开可用的 API。如果我们修改锁屏图像,我敢肯定苹果会拒绝。

关于ios - 为背景音频设置锁屏图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25845274/

相关文章:

ios - 按下按钮时如何使标签滑到屏幕上? swift 2

ios - UICollectionView 自动调整大小会导致错误

ios - swift - 应用程序在多行选择中的一行上崩溃

ios - 来自带有自定义图像的 UIButtons 的自定义 UIBarButtonItems - 是否可以使点击目标更大?

ios - 获取 UIScrollView contentView 的高度

ios - swift 3 webView 背景颜色

ios - Objective-c Coreplot 图形滚动

ios - 使 NSArray IBInspectable

iphone - 在 iPhone 上 : Find out what song is currently playing?(在 iPod 音乐播放器中)

ios - 如何在 iOS 中打开和查看 .xlsx 文件