Enumeration

AVPlayer.Status

The statuses that indicate whether a player can successfully play items.

Declaration

enum Status : Int

Topics

Player Status

case unknown

The status of the player is unknown as it hasn't tried to load new media resources for playback.

case readyToPlay

The player is ready to play items.

case failed

The player can no longer play items due to an error.

See Also

Getting Player Properties

var status: AVPlayer.Status

A status that indicates whether the player can be used for playback.

var error: Error?

The error that caused the failure.

var currentItem: AVPlayerItem?

The player’s current player item.

var isOutputObscuredDueToInsufficientExternalProtection: Bool

A Boolean value that indicates whether output is being obscured because of insufficient external protection.