Contents

status

A value that indicates the readiness of a player object for playback.

Declaration

nonisolated var status: AVPlayer.Status { get }

Discussion

If the value of this property is AVPlayer.Status.failed, check the value of the player’s error property to determine the nature of the failure. If a player reaches a failed state, you can’t use it for playback, and instead need to create a new instance.

This property is key-value observable.

See Also

Determining player readiness