Contents

status

The status of the player item.

Declaration

nonisolated var status: AVPlayerItem.Status { get }

Mentioned in

Discussion

When a player item is created, its status is AVPlayerItem.Status.unknown, 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 AVPlayerItem.Status.readyToPlay. You can observe this change using key-value observing.

For possible values, see AVPlayerItem.Status.

See Also

Determining readiness