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.
source
share