How to exit full screen mode in AVPlayerViewController in iOS9

I am using an iOS app. I need to play video in portrait and landscape modes. I have implemented AVPlayerViewController to play videos. I implemented the video, and then popsulu on the previous screen. Everything works fine, but when the user plays the video in portrait mode and presses the full-screen button, and the player enters full-screen mode, but the video ends and the playerโ€™s screen does not open, and the โ€œFinishโ€ button does not work. How to fix this problem?

+7
ios9 swift avplayer avplayerviewcontroller
source share

No one has answered this question yet.

See related questions:

12
Block button click event in AVPlayerViewController
12
iOS 8 - change the orientation back to portrait when you turn off the full screen AVPlayerViewController
4
How to rotate the screen in landscape orientation using AVPlayerViewController?
4
How to detect full screen mode using AVPlayerViewController in Swift?
2
Resize AVPlayer in landscape mode
2
Full-screen rotation of AVPlayerViewController in portrait-only application
2
Handle when AVPlayerViewController enters full screen mode
2
How to lock viewController in Portrait mode
0
AVPlayerViewController does not support play / pause state when returning from full screen mode
0
AVPlayerViewController Full Screen Button Action?

All Articles