<!--
{
  "availability" : [
    "iOS: 3.2.0 - 9.0.0",
    "iPadOS: 3.2.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: 9.0.0 - 9.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSNotification/Name-swift.struct/MPMoviePlayerPlaybackDidFinish",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@MPMoviePlayerPlaybackDidFinishNotification"
  },
  "title" : "MPMoviePlayerPlaybackDidFinish"
}
-->

# MPMoviePlayerPlaybackDidFinish

Posted when a movie has finished playing.

```
static let MPMoviePlayerPlaybackDidFinish: NSNotification.Name
```

## Discussion

The `userInfo` dictionary of this notification contains the <doc://com.apple.documentation/documentation/MediaPlayer/MPMoviePlayerPlaybackDidFinishReasonUserInfoKey> key, which indicates the reason that playback finished. This notification is also sent when playback fails because of an error.

The movie player whose state has changed is available as the object associated with the notification.

This notification is *not* sent when a movie is displaying in fullscreen mode and the user taps Done. The Done button pauses playback and causes the movie player to exit fullscreen mode. To detect this scenario, register for other notifications such as [`MPMoviePlayerDidExitFullscreen`](/documentation/Foundation/NSNotification/Name-swift.struct/MPMoviePlayerDidExitFullscreen).

---

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)