Quote:
Originally Posted by dagabe14
for anyone curious, I am still researching this, but it seems that the iPad only supports portrait when not in fullscreen.
Please someone prove this wrong!
|
/sigh, i just proved myself wrong
mpmovieplayercontroller contains a view, and can be affected by affine transformations...
Code:
- (void)startMovie:(NSString *)movieFilename
{
NSString *url = [[NSBundle mainBundle] pathForResource:movieFilename ofType:@"mov"];
player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:url]];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:player];
CGAffineTransform landscapeTransform = CGAffineTransformMakeRotation(M_PI / 2.0f);
player.view.frame = CGRectMake(40, 392, 320, 240);
[player.view setTransform:landscapeTransform];
[parentView addSubview:player.view];
[player play];
}
And there we have a video playing landscape, not fullscreen, without the need for whatever rotate function mpmovieplayercontroller used to have.
i hope whoever reads this find this useful.