如何在 iOS 中向远程控制(锁定屏幕)发送信息
我目前在锁定屏幕上更改曲目信息时遇到问题。我已经设法从锁定屏幕播放/暂停,一切都工作正常,但我完全不知道如何将“当前播放”信息发送给它。
我正在使用 AVPlayer 播放来自互联网的流媒体音频。有谁知道如何在锁定屏幕上设置艺术家/曲目名称?也许通过发送 AVPlayerItem ?非常感谢任何帮助!
谢谢!
i'm currently having issues changing track information at the lock screen. I have managed to get playing/pausing from the lock screen, and everything works fine and dandy, but I'm completely lost on how to send the "currently playing" information over to it.
I am using an AVPlayer to play streaming audio from the internet. Does anyone know how to set the artist/track name at the lock screen? Perhaps by sending over the AVPlayerItem? Any help is greatly appreciated!
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iOS 5 中的新增功能,
MPNowPlayingInfoCenter
。让您可以将信息发送到锁定屏幕,例如艺术家信息、歌曲信息等。这是有关它的文档
New in iOS 5,
MPNowPlayingInfoCenter
.. Let's you send information to the lock screen such as artist info, song info, etc.Here is the documentation on it