<!--
{
  "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/init(contentURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPMoviePlayerViewController(im)initWithContentURL:"
  },
  "title" : "init(contentURL:)"
}
-->

# init(contentURL:)

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

```
init!(contentURL: URL!)
```

## Parameters

`contentURL`

The URL that points to the content to be played.

## Return Value

A movie player view controller initialized with the specified URL.

## Discussion

---

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)