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
ios mpmovieplayercontroller


source to share


No one has answered this question yet

See similar questions:

7
How to stop MPMoviePlayerViewController from starting automatically on moviePlaybackDidFinish?

or similar:

1300
Transferring data between view controllers
22
Correct display and removal of fullscreen MPMoviePlayerController in iOS 3.2 (iPad)
6
MPMoviePlayerController: player hides player controls only in iOS6 blow
five
MPMoviePlayerPlaybackDidFinishNotification is called when it shouldn't
4
Adding views to the MPMoviePlayerController view after tapping a fullscreen button in the MPMovieControlStyleEmbedded control style
4
How to show the message "Loading movie ..." using MPMoviePlayerController
2
MPMoviePlayerController button, Landscape orientation
1
MPMoviePlayerController controls won't show on iPad
0
iOS MPMoviePlayerViewController - How to reject when app is sent to the background?
0
MPMoviePlayerController controls modal when opened in UIM style and user renders full screen video



All Articles
Loading...
X
Show
Funny
Dev
Pics