我在我的应用程序中使用 AVPictureInPictureController 及其委托方法来使用画中画功能。我按照APPLE文档来实现这个功能。我很高兴它运行良好。
但现在我想限制用户在某些错误情况下播放/暂停内容。我尝试在 PIP 模式(画中画模式)下隐藏控件,但失败了。
有什么可能的方法来限制用户的操作吗?
或者任何其他方法可以解决我的问题?
ipad ios avplayer swift avplayerviewcontroller
avplayer ×1
avplayerviewcontroller ×1
ios ×1
ipad ×1
swift ×1