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 underlying asset provided during initialization.

automaticallyLoadedAssetKeys

The array of asset keys to be automatically loaded before to the player item reaches a status of AVPlayerItemStatusReadyToPlay.

tracks

An array of AVPlayerItemTrack objects.

AVPlayerItemStatus

Constants that represent the status of an item

duration

The duration of the item’s media.

timebase

The timebase information for the item.

loadedTimeRanges

The time ranges of the item that have been loaded.

presentationSize

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

timedMetadata

The timed metadata encountered most recently by the media stream.

error

If the player item’s status is AVPlayerItemStatusFailed, this describes the error that caused the failure.