I have an embedded YoutTube video in my app. The entire app is locked into only running in portrait but I'd like the video to play in landscape once the user taps the play button on the thumbnail. Here is the code for the embedded YouTube video.

1 Answer
1

To receive the notification that your device is rotated you need to set your project configuration to use also landscape modes. Then if you have your UIViewController class, you need to implement rotation to ignore everything besides portrait. In controller where you have your video, you just override it to accept landscape too.