简体   繁体   中英

AVPlayerViewController Picture in Picture issue

I'm having a hard time understanding how to restore the PiP to fullscreen.

I press the PiP button and the screen minimizes. When I tap the PiP button on the minimized screen, the video is closed.

If I implement the delegate, I can use playerViewControllerDidStopPictureInPicture to present the fullscreen again. However, this is called when the close button is tapped. This seems like it should be default behavior. The attached image shows what I am hoping to达到 .

原来我不明白之间的区别: playerViewControllerDidStopPictureInPicture是视频停止时和restoreUserInterfaceForPictureInPictureStopWithCompletionHandler当 Pip 被点击时

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM