<!--
{
  "availability" : [
    "iOS: 3.2.0 - 9.0.0",
    "iPadOS: 3.2.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPMoviePlayerViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPMoviePlayerViewController"
  },
  "title" : "MPMoviePlayerViewController"
}
-->

# MPMoviePlayerViewController

A simple view controller for displaying full-screen movies.

```
class MPMoviePlayerViewController
```

## Overview> Important:
> The ``doc://com.apple.mediaplayer/documentation/MediaPlayer/MPMoviePlayerViewController`` class is formally deprecated in iOS 9. (The ``doc://com.apple.mediaplayer/documentation/MediaPlayer/MPMoviePlayerController`` class is also formally deprecated.) To play video content in iOS 9 and later, instead use the <doc://com.apple.documentation/documentation/AVKit/AVPictureInPictureController> or <doc://com.apple.documentation/documentation/AVKit/AVPlayerViewController> class from the AVKit framework, or the <doc://com.apple.documentation/documentation/WebKit/WKWebView> class from WebKit.

Unlike using an [`MPMoviePlayerController`](/documentation/MediaPlayer/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 <doc://com.apple.documentation/documentation/UIKit/UIViewController/presentMoviePlayerViewControllerAnimated(_:)> method. This method is part of a category on the <doc://com.apple.documentation/documentation/UIKit/UIViewController> class and is implemented by the Media Player framework. The <doc://com.apple.documentation/documentation/UIKit/UIViewController/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 <doc://com.apple.documentation/documentation/UIKit/UIViewController/dismissMoviePlayerViewControllerAnimated()> method.

## Topics

### New methods

[`-  initWithContentURL:`](/documentation/MediaPlayer/MPMoviePlayerViewController/init(contentURL:))

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

[`moviePlayer`](/documentation/MediaPlayer/MPMoviePlayerViewController/moviePlayer)

The movie player controller object used to present the movie.

## Relationships

### Conforms To

[`UITraitEnvironment`](/documentation/UIKit/UITraitEnvironment)

[`UIAppearanceContainer`](/documentation/UIKit/UIAppearanceContainer)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`UIPasteConfigurationSupporting`](/documentation/UIKit/UIPasteConfigurationSupporting)

[`UIUserActivityRestoring`](/documentation/UIKit/UIUserActivityRestoring)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`UIActivityItemsConfigurationProviding`](/documentation/UIKit/UIActivityItemsConfigurationProviding)

[`UIFocusEnvironment`](/documentation/UIKit/UIFocusEnvironment)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`UITraitChangeObservable-67e94`](/documentation/UIKit/UITraitChangeObservable-67e94)

[`UIResponderStandardEditActions`](/documentation/UIKit/UIResponderStandardEditActions)

[`NSExtensionRequestHandling`](/documentation/Foundation/NSExtensionRequestHandling)

[`Hashable`](/documentation/Swift/Hashable)

[`UIStateRestoring`](/documentation/UIKit/UIStateRestoring)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`UIContentContainer`](/documentation/UIKit/UIContentContainer)

### Inherits From

[`UIViewController`](/documentation/UIKit/UIViewController)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)