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?
Default AVPlayerLayers won't use PiP unless you use an AVPictureInPictureController.
AVPlayerViewController has a property allowsPictureInPicture
which you can set to false
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With