tags.[/b]
This code should make it work. However, I've read in multiple places that, for some reason, this is against Apple's Developer Agreement and will cause your app to be rejected when submitted for approval. You should confirm this, but here is code just for fun:
[CODE]@interface MPMoviePlayerController (extend)
-(void)setOrientation: (int)orientation animated: (BOOL)value;
@end
moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieUR];
[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO];
if (moviePlayer)
{
[self.moviePlayer play];
}
This code should make it work. However, I've read in multiple places that, for some reason, this is against Apple's Developer Agreement and will cause your app to be rejected when submitted for approval. You should confirm this, but here is code just for fun:
Code:@interface MPMoviePlayerController (extend) -(void)setOrientation: (int)orientation animated: (BOOL)value; @end moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieUR]; [moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO]; if (moviePlayer) { [self.moviePlayer play]; }
i'm not an Xcode dev, but the code looks as if it force- _plays_ movies in landscape
(cmiiw)
isn't the OP asking for something that'll force RECORD movies in landscape, even if you hold the phone in portrait?
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3 like Mac OS X; en-us) AppleWebKit/534.32 (KHTML, like Gecko) Version/5.0.2 Mobile/8F190 Safari/6533.18.5)
Oh yeah, no problem man. I remember when I was in your shoes and whenever I asked a question on Stack Overflow I would always receive answers that half answered my question with no attempt to shield their negative attitude. Lol, whatever, you'll get used to objective C and Xcode eventually.
So no ideas on how to record landscape style videos while holding the phone in portrait mode?
Didn't work for me, and I so wanted it to.a quick and dirty workaround would be to start in landscape, turn the phone after a second and keep filming in portrait (which will stay locked to landscape)
the orientation doesn't change anymore while filming.
You'd just have to trim off that 1 second at the beginning of each take though :/
Mine is rotating for some reason....will keep trying.how did that not work?
the recorded image doesn't rotate mid-film