How to disable Picture in Picture mode for default video player

两盒软妹~` 提交于 2019-12-10 23:57:57

问题


How can I disable Picture in Picture button/mode using Swift in iOS9 on iPad when user tries to play a video in my app?


回答1:


Default AVPlayerLayers won't use PiP unless you use an AVPictureInPictureController.

AVPlayerViewController has a property allowsPictureInPicture which you can set to false.



来源:https://stackoverflow.com/questions/32726385/how-to-disable-picture-in-picture-mode-for-default-video-player

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!