---
title: preferredMaximumResolution
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayeritem/preferredmaximumresolution
---

# preferredMaximumResolution

The desired maximum resolution of a video that is to be downloaded.

## Declaration

```swift
nonisolated var preferredMaximumResolution: CGSize { get set }
```

## Discussion

Discussion Defaults to CGSizeZero, which indicates there is no limit on the video resolution. Any other value indicates a preferred maximum video resolution. This property only applies to HTTP Live Streaming assets.

## See Also

### Configuring presentation

- [presentationSize](avfoundation/avplayeritem/presentationsize.md)
- [videoApertureMode](avfoundation/avplayeritem/videoaperturemode.md)
- [AVVideoApertureMode](avfoundation/avvideoaperturemode.md)
