<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayer/automaticallyWaitsToMinimizeStalling",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayer(py)automaticallyWaitsToMinimizeStalling"
  },
  "title" : "automaticallyWaitsToMinimizeStalling"
}
-->

# automaticallyWaitsToMinimizeStalling

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

```
nonisolated var automaticallyWaitsToMinimizeStalling: Bool { get set }
```

## Discussion

When playing media delivered over HTTP, this property is used to determine if the player should automatically delay playback in order to minimize stalling. When this property is <doc://com.apple.documentation/documentation/Swift/true> and the player changes from a paused state ([`rate`](/documentation/AVFoundation/AVPlayer/rate) of `0.0`) to a played state ([`rate`](/documentation/AVFoundation/AVPlayer/rate) > `0.0`), the player will try to determine if the current item can play to its end at the currently specified rate. If it determines that it’s likely to encounter a stall, the value of the player’s [`timeControlStatus`](/documentation/AVFoundation/AVPlayer/timeControlStatus-swift.property) will change to [`AVPlayer.TimeControlStatus.waitingToPlayAtSpecifiedRate`](/documentation/AVFoundation/AVPlayer/TimeControlStatus-swift.enum/waitingToPlayAtSpecifiedRate) and playback will automatically start when the likelihood of stalling has been minimized. A similar condition will occur during playback if the current player item’s playback buffer is exhausted and playback stalls. Playback will automatically resume when the likelihood of stalling has been minimized.

You will need to set this property to <doc://com.apple.documentation/documentation/Swift/false> when you require precise control over playback start times, such as if you’re are synchronizing multiple player instances using the [`setRate(_:time:atHostTime:)`](/documentation/AVFoundation/AVPlayer/setRate(_:time:atHostTime:)) method. If the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, playback will start immediately when requested as long as the playback buffer is not empty. If the playback buffer becomes empty and playback stalls, the player’s [`timeControlStatus`](/documentation/AVFoundation/AVPlayer/timeControlStatus-swift.property) will switch to [`AVPlayer.TimeControlStatus.paused`](/documentation/AVFoundation/AVPlayer/TimeControlStatus-swift.enum/paused) and the playback rate will change to `0.0`.

Changing the value of this property to <doc://com.apple.documentation/documentation/Swift/false> while the player’s [`timeControlStatus`](/documentation/AVFoundation/AVPlayer/timeControlStatus-swift.property) is [`AVPlayer.TimeControlStatus.waitingToPlayAtSpecifiedRate`](/documentation/AVFoundation/AVPlayer/TimeControlStatus-swift.enum/waitingToPlayAtSpecifiedRate) and its [`reasonForWaitingToPlay`](/documentation/AVFoundation/AVPlayer/reasonForWaitingToPlay) is [`toMinimizeStalls`](/documentation/AVFoundation/AVPlayer/WaitingReason/toMinimizeStalls) will cause the player to immediately attempt playback at the specified rate.

> Important:
> For clients linked against iOS 10.0 and later or macOS 10.12 and later (and running on those versions), the default value of this property is <doc://com.apple.documentation/documentation/Swift/true>. This property did not exist in previous OS versions and the observed behavior was dependent on the type of media played:
> 
> - **HTTP Live Streaming (HLS):** When playing HLS media, the player behaved as if ``doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayer/automaticallyWaitsToMinimizeStalling`` is <doc://com.apple.documentation/documentation/Swift/true>.
> - **File-based Media:** When playing file-based media, including progressively downloaded content, the player behaved as if ``doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayer/automaticallyWaitsToMinimizeStalling`` is <doc://com.apple.documentation/documentation/Swift/false>.
> 
> You should verify that your playback applications perform as expected using this new default automatic waiting behavior.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)