It drives me crazy.
Simply, I have MPMoviePlayerViewController and you want to show a full-screen movie. Using ARC over iOS 5.0+, I want to make this player reusable.
The first time a movie is played, it spans the entire screen and plays amazingly. Overlay controls display correctly and respond to subtle ones. I represent him with
[theMovie.moviePlayer setContentURL:movieURL]; [theMovie.moviePlayer prepareToPlay]; [self presentViewController:theMovie animated:YES completion:^{ [theMovie.moviePlayer play]; }];
After playback is complete, I intercept the notification and start it
[self dismissViewControllerAnimated:YES completion:^{ [theMovie.moviePlayer stop]; [theMovie.moviePlayer setContentURL:nil]; }];
Now the problem is that from the second time and at the time of playing the movie, it shows the controls, but the player no longer responds to touches in the movie area. I can use the controls, back, play / pause, search, do, etc., but I canโt touch the area without control to switch the visibility of the controls. It automatically hides if I allow it to play normally, but will not appear again after touching an area without control.
I have no idea what is going on here. I would like to love if you could help me.
Thank you Mr.
source share