metadata - 设置 nowplayingInfo 以显示元数据在 Airplay Apple TV 上不起作用

标签 metadata avplayer airplay mpnowplayinginfocenter

我正在通过 MPNowPlayingInfoCenter 从音频应用程序发送元数据:标题、艺术家、艺术作品......

在 iPhone 设备上,所有这些信息都会正确显示在设备的控制中心(以及也使用这些元数据的 Carplay 或 Apple Watch 中)。

但是在通过 Airplay (MPVolumView) 的 Apple TV 上,我只看到带有进度条的黑屏。

我通过 KVO 在 AVPlayerItem timedMetadata 上注册,但是一旦我在 AppleTV 上玩游戏,我就不再作为观察者收到任何通知。

有人有同样的问题吗?

非常感谢您的回复。

最佳答案

将 bool 值 allowedexternalplayback 设置为 false

关于metadata - 设置 nowplayingInfo 以显示元数据在 Airplay Apple TV 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56112838/

相关文章:

ios - allowAirPlay在MPMoviePlayerViewController中不显示Air Play按钮

mysql - 在 MySQL 中循环以创建串联变量

python - C 元与 cmake 依赖问题

ios - 如何在 swift iOS 应用程序中创建简单的播放器

ios - 从存档构建时 CADisplayLink 断断续续

ios - 初始化 MPVolumeView 会导致 iOS 11 beta 3 上的应用程序崩溃

iOS 隔空播放 : my app is only notified of an external display when mirroring is ON?

r - 如何在 R 中创建、构建、维护和更新数据码本?

FFmpeg:生成 .ts 文件并向其中添加元数据

ios - 在 Swift Playground 中使用 AVPlayer 播放视频?