Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Use an instance of the MPMoviePlayerController class.
If you simply want to display a full-screen movie player, you
can use the MPMoviePlayerViewController class and push
your movie player view controller into the stack of view controllers
of a navigation controller (for instance), or simply present your
movie player view controller as a modal controller on another view
controller using the presentMoviePlayerViewControllerAnimated:
instance method of UIViewController. In this recipe, we will
use MPMoviePlayerController
instead of MPMoviePlayerViewController in order to
get full access to various settings that a movie player view
controller does not offer, such as windowed-mode video playback (not
full-screen).