Programmatically invoke the full-screen AVPlayerViewController button

I have an AVPlayer wrapped in an AVPlayerViewController. My entire application is in portrait mode, and AVPlayer is an approach to one of the views. I want the video to fully display automatically when the device is rotated as a YouTube application. Is there a way to programmatically call the AVPlayerViewController on-screen button method. The documentation did not find anything.

+4
source share

All Articles