Contents

automaticallyLoadedAssetKeys

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

Declaration

nonisolated var automaticallyLoadedAssetKeys: [String] { get }

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