<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItem/automaticallyLoadedAssetKeys",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerItem(py)automaticallyLoadedAssetKeys"
  },
  "title" : "automaticallyLoadedAssetKeys"
}
-->

# automaticallyLoadedAssetKeys

The array of asset keys to be automatically loaded before the player item is ready to play.

```
nonisolated var automaticallyLoadedAssetKeys: [String] { get }
```

## Discussion

The value of each key in `automaticallyLoadedAssetKeys` will automatically be loaded by the [`asset`](/documentation/AVFoundation/AVPlayerItem/asset) prior to the player item reaching a status of [`AVPlayerItem.Status.readyToPlay`](/documentation/AVFoundation/AVPlayerItem/Status-swift.enum/readyToPlay). When this status is reached, the asset’s [`statusOfValue(forKey:error:)`](/documentation/AVFoundation/AVAsynchronousKeyValueLoading/statusOfValue(forKey:error:)) method returns [`AVKeyValueStatus.loaded`](/documentation/AVFoundation/AVKeyValueStatus/loaded) for the status of all keys in the array. If loading of any of the asset’s key values fails, the player item’s [`status`](/documentation/AVFoundation/AVPlayerItem/status-swift.property) will change to [`AVPlayerItem.Status.failed`](/documentation/AVFoundation/AVPlayerItem/Status-swift.enum/failed).

---

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)