Please check the code below:
(void) moviePlayerDidExitFullscreen:(NSNotification*)notification { MPMoviePlayerController *player = [notification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerDidExitFullscreenNotification object:player]; [player setControlStyle:MPMovieControlStyleNone]; if (isPlaying) { [self stopCurrentMoviePlayer]; } }
The problem is that this works fine in iOS 5 but does not work in iOS 6 iPad3 updates.
The movie player does not close after the video ends, and I need to press the end button each time to close the Movie Player.
Can anyone solve the problem?
source share