Rotate MPMoviePlayerController to Landscape - iPhone SDK?

From the UIViewController class reference : By default, the UIViewController class displays views in portrait mode only. To support additional orientations, you must override the shouldAutorotateToInterfaceOrientation: method and return YES for any orientations your subclass supports. If the autoresizing properties of your views are configured correctly, that may be all you have to do.

However, the UIViewController class provides additional hooks for you to implement additional behaviors as needed For example, if your autoresizingMask is set to UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight and the parent view of your movie player view has autoresizesSubviews = YES then returning YES from the shouldAutorotateToInterfaceOrientation may be all you need to do.

From the UIViewController class reference: By default, the UIViewController class displays views in portrait mode only. To support additional orientations, you must override the shouldAutorotateToInterfaceOrientation: method and return YES for any orientations your subclass supports. If the autoresizing properties of your views are configured correctly, that may be all you have to do.

However, the UIViewController class provides additional hooks for you to implement additional behaviors as needed. For example, if your autoresizingMask is set to UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight, and the parent view of your movie player view has autoresizesSubviews = YES, then returning YES from the shouldAutorotateToInterfaceOrientation may be all you need to do.

Thanks, but I've manually got it to work by shaping my view to lanscape dimensions and rotating my MPMoviePlayerController. But now I've led to the problem where my done button isn't working when I enable the moviePlayer setControlStyle:MPMovieControlStyleFullScreen; – uhelios Sep 13 '10 at 22:11.

I found this way only useful but it is timetaking to set the desired frame- theMovie=MPMoviePlayerController alloc initWithContentURL:theURL; // Rotate the view for landscape playback theMovie view setBounds:CGRectMake(-230, 155, 480, 350); theMovie view setTransform:CGAffineTransformMakeRotation(M_PI / 2).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions