What is the right way for pausing MPMoviePlayerController when tapping another tab bar item and going to another view? I need MPMoviePlayerController somehow to be shared between tab bar view controllers in order to pause video. Is there another way to pause a video, some event like “whenViewIsOffScreen” or smith?
What is the right way for pausing MPMoviePlayerController when tapping another tab bar item
Share
You probably can use either viewWillDisappear or viewDidDisappear to pause the video and viewWillAppear or viewdidAppear to resume playing it. Implement these methods in the view controller that contains your video.
Something like this :