<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPMediaEntityPropertyPersistentID",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:@MPMediaEntityPropertyPersistentID"
  },
  "title" : "MPMediaEntityPropertyPersistentID"
}
-->

# MPMediaEntityPropertyPersistentID

The persistent identifier for a media entity.

```
let MPMediaEntityPropertyPersistentID: String
```

## Discussion

This value contains a <doc://com.apple.documentation/documentation/kernel/uint64_t> (unsigned long long) which you can use to build a media property predicate, as described in [`MPMediaPropertyPredicate`](/documentation/MediaPlayer/MPMediaPropertyPredicate).

---

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)