Instance Property

status

The status of the player item.

Declaration

@property(nonatomic, readonly) AVPlayerItemStatus status;

Discussion

When a player item is created, its status is AVPlayerItemStatusUnknown, meaning its media hasn’t been loaded and has not yet been enqueued for playback. Associating a player item with an AVPlayer immediately begins enqueuing the item’s media and preparing it for playback. When the player item’s media has been loaded and is ready for use, its status will change to AVPlayerItemStatusReadyToPlay. You can observe this change using key-value observing.

For possible values, see AVPlayerItemStatus.

See Also

Inspecting a Player Item

asset

The asset provided during initialization.

automaticallyLoadedAssetKeys

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

tracks

An array of player item track objects.

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.

error

The error that caused the player item to fail.