---
title: MPMoviePlayerViewController
framework: mediaplayer
role: symbol
role_heading: Class
path: mediaplayer/mpmovieplayerviewcontroller
---

# MPMoviePlayerViewController

A simple view controller for displaying full-screen movies.

## Declaration

```swift
class MPMoviePlayerViewController
```

## Overview

Overview important: The MPMoviePlayerViewController class is formally deprecated in iOS 9. (The MPMoviePlayerController class is also formally deprecated.) To play video content in iOS 9 and later, instead use the AVPictureInPictureController or AVPlayerViewController class from the AVKit framework, or the WKWebView class from WebKit. 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

- [init(contentURL:)](mediaplayer/mpmovieplayerviewcontroller/init(contenturl:).md)
- [moviePlayer](mediaplayer/mpmovieplayerviewcontroller/movieplayer.md)

## Relationships

### Inherits From

- [UIViewController](uikit/uiviewcontroller.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSExtensionRequestHandling](foundation/nsextensionrequesthandling.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UIAppearanceContainer](uikit/uiappearancecontainer.md)
- [UIContentContainer](uikit/uicontentcontainer.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIStateRestoring](uikit/uistaterestoring.md)
- [UITraitChangeObservable](uikit/uitraitchangeobservable-67e94.md)
- [UITraitEnvironment](uikit/uitraitenvironment.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)

## See Also

### Deprecated symbols

- [MPMovieAccessLog](mediaplayer/mpmovieaccesslog.md)
- [MPMovieAccessLogEvent](mediaplayer/mpmovieaccesslogevent.md)
- [MPMovieErrorLog](mediaplayer/mpmovieerrorlog.md)
- [MPMovieErrorLogEvent](mediaplayer/mpmovieerrorlogevent.md)
- [MPMovieLoadState](mediaplayer/mpmovieloadstate.md)
- [MPMovieMediaTypeMask](mediaplayer/mpmoviemediatypemask.md)
- [MPMoviePlayerController](mediaplayer/mpmovieplayercontroller.md)
- [MPTimedMetadata](mediaplayer/mptimedmetadata.md)
- [MPPlayableContentManager](mediaplayer/mpplayablecontentmanager.md)
- [MPPlayableContentManagerContext](mediaplayer/mpplayablecontentmanagercontext.md)
- [iPodMusicPlayer](mediaplayer/mpmusicplayercontroller/ipodmusicplayer.md)
- [init(image:)](mediaplayer/mpmediaitemartwork/init(image:).md)
- [imageCropRect](mediaplayer/mpmediaitemartwork/imagecroprect.md)
- [showsRouteButton](mediaplayer/mpvolumeview/showsroutebutton.md)
- [routeButtonImage(for:)](mediaplayer/mpvolumeview/routebuttonimage(for:).md)
