Class

MPMoviePlayerViewController

A simple view controller for displaying full-screen movies.

Declaration

@interface MPMoviePlayerViewController : UIViewController

Overview

Unlike using an MPMoviePlayerController object on its own to present a movie immediately, you can incorporate a movie player view controller wherever you would normally use a view controller. For example, you can present it using a tab bar or navigation bar-based interface, taking advantage of the transitions offered by those interfaces.

To present a movie player view controller modally, you typically use the presentMoviePlayerViewControllerAnimated: method. This method is part of a category on the UIViewController class and is implemented by the Media Player framework. The presentMoviePlayerViewControllerAnimated: method presents a movie player view controller using the standard transition animations for presenting video content. To dismiss a modally presented movie player view controller, call the dismissMoviePlayerViewControllerAnimated method.

Topics

New Methods

- initWithContentURL:

Returns a movie player view controller initialized with the specified movie.

moviePlayer

The movie player controller object used to present the movie.

- shouldAutorotateToInterfaceOrientation:

Returns a Boolean value indicating whether the view controller supports the specified orientation.

Relationships

Inherits From

See Also

Deprecated Symbols

MPMovieAccessLog

Key metrics about network playback for an associated movie player that is playing streamed content.

Deprecated
MPMovieAccessLogEvent

A single piece of information for a movie access log.

Deprecated
MPMovieErrorLog

Data describing network resource playback failures for the associated movie player, including timestamps indicating when each failure occurred.

Deprecated
MPMovieErrorLogEvent

A single piece of information for a movie error log.

Deprecated
MPMovieLoadState

Constants describing the network load state of the movie player.

Deprecated
MPMovieMediaTypeMask

The types of content available in the movie file.

Deprecated
MPMoviePlayerController

A type of movie player that manages the playback of a movie from a file or a network stream.

Deprecated
MPTimedMetadata

A timed metadata object that carries time-based information within HTTP streamed media.

Deprecated