<!--
{
  "availability" : [
    "iOS: 4.3.0 -",
    "iPadOS: 4.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItem/failedToPlayToEndTimeNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@AVPlayerItemFailedToPlayToEndTimeNotification"
  },
  "title" : "failedToPlayToEndTimeNotification"
}
-->

# failedToPlayToEndTimeNotification

A notification that the system posts when a player item fails to play to its end time.

```
class let failedToPlayToEndTimeNotification: NSNotification.Name
```

## Discussion

The notification’s object is the player item that finished playing.

> Important:
> The system may post this notification on a thread other than the one you use to register the observer.

## Topics

### Error keys

[`AVPlayerItemFailedToPlayToEndTimeErrorKey`](/documentation/AVFoundation/AVPlayerItemFailedToPlayToEndTimeErrorKey)

The key to retrieve the error object from the notification’s user information dictionary.



---

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)