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
selector:@selector(moviePlaybackComplete:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:moviePlayerController];
[self.view addSubview:moviePlayerController.view];
[moviePlayerController.view setFrame:CGRectMake(0, 0, 1024, 768)];
moviePlayerController.fullscreen = YES;
if ([moviePlayerController respondsToSelector:@selector(setAllowsAirPlay:)])
//Allow airplay ifavailabe
[moviePlayerController setAllowsAirPlay:YES];
[moviePlayerController play];
moviePlayerController.controlStyle = MPMovieControlStyleNone;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With