<!--
{
  "availability" : [
    "iOS: 4.1.0 -",
    "iPadOS: 4.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWriter/shouldOptimizeForNetworkUse",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetWriter(py)shouldOptimizeForNetworkUse"
  },
  "title" : "shouldOptimizeForNetworkUse"
}
-->

# shouldOptimizeForNetworkUse

A Boolean value that indicates whether to write the output file to make it more suitable for playback over a network.

```
var shouldOptimizeForNetworkUse: Bool { get set }
```

## Discussion

Setting this value to <doc://com.apple.documentation/documentation/Swift/true> writes the output file in a form that enables a player to begin playing the media after downloading only a small portion of it.

---

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)