Take the 2-minute tour ×

How to hide the MPmoviePlayerController's control bar.

I just want to make the movie get a fullscreen and have nothing on it.

NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:dataPath ofType:@""]];
        moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:url];
        [[NSNotificationCenter defaultCenter] addObserver:self

        [self.view addSubview:moviePlayerController.view];
        [moviePlayerController.view setFrame:CGRectMake(0, 0, 1024, 768)];
        moviePlayerController.fullscreen = YES;
            //Allow airplay ifavailabe
        [moviePlayerController setAllowsAirPlay:YES];

        [moviePlayerController play];
share|improve this question
add comment

1 Answer

up vote 8 down vote accepted
moviePlayerController.controlStyle = MPMovieControlStyleNone;
share|improve this answer
add comment

Your Answer


