I want to add a custom functionality of mine, while we click the “Done” button displayed on top of the screen when the MPMoviePlayerController goes to full screen mode.
Any ideas on that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can register for the
MPMoviePlayerPlaybackDidFinishNotificationnotification. This notification’s userInfo property has an object forMPMoviePlayerPlaybackDidFinishReasonUserInfoKey, check that and see if it isMPMovieFinishReasonUserExited. If that’s the case, your user has hit done and you can go ahead with your custom functionality. If you want to stop it from ending playback altogether, things might get more complicated.You can also register for the
MPMoviePlayerWillEnterFullscreenNotificationnotification or check theMPMoviePlayerControllerfullscreen property.