iphonemovieplayer

mpmovieplayercontroller issue


one small issue in my movieplayer..![movieplayer shows like this]

1: https://i.sstatic.net/WujxB.png but i want to show as below screenshotWant to show like this

mycode:

moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
moviePlayerController.view.frame = CGRectMake(0,0,320,460); 
moviePlayerController.fullscreen = YES; 
[self.view addSubview:moviePlayerController.view]; 
[moviePlayerController play];

Solution

  • Those are the default controls for fullscreen playback, since you set moviePlayerController.fullscreen = YES.

    The controls you want are for embedded playback, not fullscreen.

    What you want is moviePlayerController.controlStyle = MPMovieControlStyleEmbedded; but you can only use it if your movie is embbeded in one of your views. Then you would have the controls that you want, including a toggle between fullscreen and embedded.