当用户尝试在我的应用程序中播放视频时,如何在 iPad 上的 iOS9 中使用 Swift 禁用画中画按钮/模式?
默认 AVPlayerLayers 不会使用画中画,除非您使用AV画中画控制器 https://developer.apple.com/library/prerelease/ios/documentation/AVKit/Reference/AVPictureInPictureController_Class/index.html.
AVPlayerViewController 有一个属性allowsPictureInPicture https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayerViewController_Class/#//apple_ref/occ/instp/AVPlayerViewController/allowsPictureInPicturePlayback你可以设置为false
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)