Instance Property

status

A status indicating the loopers ability to be used for looping playback.

Declaration

var status: AVPlayerLooper.Status { get }

Discussion

The status indicates whether the looper is ready for looping playback. When the value of this property is AVPlayerLooper.Status.failed or AVPlayerLooper.Status.cancelled, the looper can no longer be used for playback and a new instance needs to be created if you would like to begin looping again. If the status is AVPlayerLooper.Status.failed, you can check the value of the error property to determine the nature of the failure.

This property is key-value observable.

See Also

Observing Looper State

var loopCount: Int

The number of times the specified player item has been played.

enum AVPlayerLooper.Status

The statuses that indicate whether a looper can successfully perform looping playback.

var error: Error?

The error that caused looping to fail.