首页 > 解决方案 > iOS 13 MPRemoteCommandCenter 在后台模式后断开连接

问题描述

嗨,任何人在使用 AVPlayerViewController 并将 MPRemoteCommandCenter 设置为控制中心时遇到问题。当应用程序进入后台时视频继续播放但控制中心断开连接?

我使用了这篇文章中的示例代码

https://medium.com/@quangtqag/play-a-video-and-continue-playing-audio-in-background-456ec139eae

在 ios 12 上完美运行,但在 ios 13 中,当应用程序进入后台时,您无法使用控制中心控制播放。

标签: swiftavplayerviewcontrollermpremotecommandcenter

解决方案


推荐阅读