Search code examples
iosobjective-cmpmovieplayercontroller

MPMoviePlayerController is in fullscreen mode?


How do I determine whether MPMoviePlayerController is in full screen mode or not?


Solution

  • From Apple's doco:

    Use the MPMoviePlayerWillEnterFullscreenNotification and MPMoviePlayerWillExitFullscreenNotification notifications to detect changes to and from fullscreen mode.

    There is also a fullscreen property:

    A Boolean that indicates whether the movie player is in full-screen mode.