So I have an AVPlayerLayer that I want to rotate when the user turns the device landscape and go fullscreen. However, I don't want the UI behind the player to rotate with it. How do I do this?
I'm aware that each view controller specifies if it should autorotate or not and which orientations it supports. I've tried using the transform property on the view that encloses the AVPlayerLayer, but changing that messes with the player controls that are also in the view and created with auto layout.
I've also tried to remove the root view controller (which doesn't autorotate), replacing it with a view controller that does rotate and then adding the view from the original, non-rotating viewcontroller below that.
I've done a lot of searching, but it seems like they aren't up to date with iOS 10. Thanks.
Edit: To clarify the view that the video is in also has other interface elements within it.