---
title: automaticallyLoadedAssetKeys
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayeritem/automaticallyloadedassetkeys
---

# automaticallyLoadedAssetKeys

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

## Declaration

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

## Discussion

Discussion The value of each key in automaticallyLoadedAssetKeys will automatically be loaded by the asset prior to the player item reaching a status of AVPlayerItem.Status.readyToPlay. When this status is reached, the asset’s statusOfValue(forKey:error:) method returns 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 will change to AVPlayerItem.Status.failed.

## See Also

### Accessing initialization parameters

- [asset](avfoundation/avplayeritem/asset.md)
