when i do the following:
Code:
MPMoviePlayerViewController *playerView = [[MPMoviePlayerViewController alloc] initWithContentURL:self.movieFile];
[self presentMoviePlayerViewControllerAnimated:playerView];
the view opens, takes up the whole screen, plays the video and immediately dismisses itself.
when i do:
Code:
MPMoviePlayerViewController *playerView = [[MPMoviePlayerViewController alloc] initWithContentURL:self.movieFile];
MPMoviePlayerController *theMovie = [playerView moviePlayer];
[theMovie setFullscreen:YES animated:YES];
theMovie.shouldAutoplay = YES;
theMovie.view.frame = CGRectMake(0, 0, 320, 480);
[self.view addSubview:playerView.view];
it loads and sticks around, but the video toolbar is what looks to be the height of the status bar below the navigation bar, leaving a gap between the two where the video is visible, and the controls are halfway off the bottom of the screen. So it looks like it is considering (0,0) to be the position in the view below the navigation bar, not the status bar.
i would prefer that the video player both stick around, and take up the whole screen. how do i do this?