jeudi 29 janvier 2015

Application UI whitish and fade the screen after remove MPMoviePlayerViewController

I am using MPMoviePlayerViewController in my application and implemented related code in Utility class. I am adding MPMoviePlayerViewController on the application main window. Issue is: While playing video player controls showing and after finish video with status controls visible, application UI displaying whitish with fade effect and after 2 seconds UI comes in proper state.



  • (void)mediaPlyerRemoveAction


{



if (self.customCallOutView!=nil)


{



[self removeCallout];


}


[[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerNowPlayingMovieDidChangeNotification object:nil]; [[Utility sharedUtility].mediaPlayer stop]; [[Utility sharedUtility].audioPlayer stop]; [[Utility sharedUtility].playerViewController.view removeFromSuperview]; [Utility sharedUtility].playerViewController = nil; [Utility sharedUtility].mediaPlayer = nil; [Utility sharedUtility].audioPlayer = nil; [Utility sharedUtility].audioPlayer.delegate = nil; [[Utility sharedUtility] setApplicationInPortraitMode]; isVideoPlaying = NO; }






Please help me if any solution on the above mention issue. Thanks in advance




Aucun commentaire:

Enregistrer un commentaire