Instance Property

automaticallyLoadedAssetKeys

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

Declaration

@property(nonatomic, readonly) NSArray<NSString *> *automaticallyLoadedAssetKeys;

Discussion

The value of each key in automaticallyLoadedAssetKeys will automatically be loaded by the asset prior to the player item reaching a status of AVPlayerItemStatusReadyToPlay. When this status is reached, the asset’s statusOfValueForKey:error: method returns AVKeyValueStatusLoaded 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 AVPlayerItemStatusFailed.

See Also

Inspecting a Player Item

asset

The asset provided during initialization.

tracks

An array of player item track objects.

status

The status of the player item.

AVPlayerItemStatus

The statuses for a player item.

duration

The duration of the item.

timebase

The timebase information for the item.

loadedTimeRanges

An array of time ranges indicating media data that is readily available.

presentationSize

The size at which the visual portion of the item is presented by the player.

timedMetadata

An array of the most recently encountered timed metadata.

Deprecated
error

The error that caused the player item to fail.