---
title: shouldOptimizeForNetworkUse
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avassetwriter/shouldoptimizefornetworkuse
---

# shouldOptimizeForNetworkUse

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

## Declaration

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

## Discussion

Discussion Setting this value to 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.

## See Also

### Configuring output

- [metadata](avfoundation/avassetwriter/metadata.md)
- [directoryForTemporaryFiles](avfoundation/avassetwriter/directoryfortemporaryfiles.md)
