Instance Property

timeControlStatus

Indicates whether playback is currently in progress, paused indefinitely, or suspended while waiting for appropriate network conditions.

Declaration

var timeControlStatus: AVPlayerTimeControlStatus { get }

Discussion

When automaticallyWaitsToMinimizeStalling is true, the value of this property transitions between playing and waitingToPlayAtSpecifiedRate during playback depending on whether sufficient media data is available to continue playback.

This property is observable using Key-value observing.

See Also

Managing Automatic Waiting Behavior

var automaticallyWaitsToMinimizeStalling: Bool

Indicates if the player should automatically delay playback in order to minimize stalling.

var reasonForWaitingToPlay: AVPlayer.WaitingReason?

Indicates the reason the player is currently waiting for playback to begin or resume.

func playImmediately(atRate: Float)

Immediately plays the available media data at the specified rate.

struct AVPlayer.WaitingReason

The following are valid constant values for the player’s reasonForWaitingToPlay property.