As MPMoviePlayerViewController
supports pinch gesture ( two fingers move apart ) to make the movie player full screen, is there any method to remove this gesture? Because if I use the gesture, the movie is still playing without the video. I think the view of movie controller is removed from super view.
I tried overriding touchesBegan
and the notification WillEnterFullScreenNotification
& DidEnterFullScreenNotfication
, but it didn't work.
I had a similar issue with the "pinch gesture" reorienting the video display from landscape to portrait. I solved it by accessing the view property of the MPMoviePlayerController
object and setting userInteractionEnabled
to NO
.
moviePlayer = [[MPMoviePlayerController alloc] init];
[moviePlayer view].userInteractionEnabled = NO;
This prevents any user touches from getting through and changing the orientation or fullscreen status of the MPMoviePlayerController
.