Stop spinning youtubevideo player ios sdk

My application only supports portrait mode. I played with you as a video using the built-in HTML (LoadHTML) (for example: http://www.youtube.com/watch?v=3F1_04GLrPs ), and it works fine even after rotation, But now I play a ready-made embedded video (for example: http://www.youtube.com/embed/3F1_04GLrPs ) with (LoadRequist) it plays the video, but after turning the iPhone into an album and click to do this, also turn my view controller to landscape, and my application supports portrait mode only.

+3
source share
1 answer
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{

    // Return YES for supported orientations

    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
0
source

All Articles