MPMoviePlayerController controls after movie ends

I am showing a short clip in full screen and at the end I would like to NOT dismiss MPMoviePlayerController

, as is the default behavior, but just show the controls and let the user click Done when they are ready to move on.

So far I have managed to disable autostart with this answer: https://stackoverflow.com/a/1902994/ ... now I just need to show the controls.

I have the following:

-(void)videoFinished:(NSNotification*)aNotification{
    int value = [[aNotification.userInfo valueForKey:MPMoviePlayerPlaybackDidFinishReasonUserInfoKey] intValue];
    if (value == MPMovieFinishReasonUserExited) { // user tapped Done
        [self dismissMoviePlayerViewControllerAnimated];
    } else { // movie finished playing
        MPMoviePlayerController *player = aNotification.object;
        // do something to show the controls, but what?
    }
}

      

I tried setting it to controlStyle

none and then going back to full screen mode, but it still doesn't work until the user touches the screen. Is there any way to programmatically display the display of video controls?

+3


source to share





All Articles