Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Please user
Code:
 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];
}
 
Last edited by a moderator:
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?
 
Quoted post edited.

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];
}

Anyways upon using that code, xcode gives me the "build failed" error. Any ideas why?
 
Last edited by a moderator:
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.
 
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?

This is correct. I guess I should've looked over the code. Haha. Back to the drawing board. ( .__.)
 
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?
 
So no ideas on how to record landscape style videos while holding the phone in portrait mode?

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 :/
 
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 :/
Didn't work for me, and I so wanted it to.
I remember this being the case with my nano though.

I would like more user options on all of this also because when you can use the volume up button for shutter I would prefer it on the top.
 
how did that not work?

the recorded image doesn't rotate mid-film
Mine is rotating for some reason....will keep trying.
I even let it stay in landscape for several seconds to see if that locked it in.
I thought it would work, as I say, that's how it did on my nano.

Hmmmm.
Can you think of any reason for this not to work on my iP4?
Uploading a video now to youtube to show you.
I'll probably be embarrassed at something stupid I'm doing wrong.

EDIT:

Should be done processing in a few minutes

http://www.youtube.com/watch?v=s_wkmfOcHqE
 
Last edited by a moderator:
the video image stays in landscape mode but does rotate
One could, with the right video editor rotate it to correct, but....not easy
still waiting to hear if i've done something stupidly wrong here....
which is always a likely possibility
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.