Instance Property

error

The error that caused the failure.

Declaration

var error: Error? { get }

Discussion

The value of this property is an error object that describes what caused the receiver to no longer be able to play items. If the receiver's status is not AVPlayer.Status.failed, the value of this property is nil.

See Also

Getting Player Properties

var status: AVPlayer.Status

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

enum AVPlayer.Status

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software