Instance Property

timeControlStatus

A status that 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

A Boolean value that indicates whether the player should automatically delay playback in order to minimize stalling.

var reasonForWaitingToPlay: AVPlayer.WaitingReason?

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

func playImmediately(atRate: Float)

Plays plays the available media data immediately, at the specified rate.

struct AVPlayer.WaitingReason

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