I have 3 problems:
My video only plays in the simulator not my device. On my device it does not load. Just keeps spinning.
It is stuck in portrait mode.
How to stop memory leak error. (release it properly)
@implementation Buttons_and_BasicsViewController
@synthesize theMovie;
-(void)viewWillAppear

BOOL)animated
{
NSString *moviePath = [ [[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"buttons.m4v"];
self.theMovie = [[MPMoviePlayerViewController alloc]
initWithContentURL:[NSURL fileURLWithPath:moviePath]];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackComplete

name:MPMoviePlayerPlaybackDidFinishNotification
object:self.theMovie];
[self.view addSubview:self.theMovie.view];
self.theMovie.view.frame = CGRectMake(0, 0, 320, 410);
//---play movie---
MPMoviePlayerController *player = [self.theMovie moviePlayer];
[player play];
}