> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://fastpix.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fastpix.com/docs/_mcp/server.

# Set rendition order

> Learn how to control the order in which the FastPix iOS Player selects video quality levels within a resolution range.

Learn how to control the order in which the FastPix iOS Player selects video quality levels within a resolution range.

When you define both a minimum and maximum resolution, you can specify the rendition order to control whether the player starts with the lowest or highest available quality within that range.

## Default behavior

By default, the FastPix iOS Player uses ascending rendition order. The player starts with the lowest available resolution in the range and gradually increases quality as playback progresses, depending on network conditions.

## Set descending rendition order

To start with the highest quality and step down if needed:

```swift
playerViewController.prepare(
    playbackID: playbackID,
    playbackOptions: PlaybackOptions(
        minResolution: .atLeast270p,
        maxResolution: .upTo1080p,
        renditionOrder: .descending
    )
)
```

## Set default (ascending) rendition order with a token

```swift
playerViewController.prepare(
    playbackID: playbackID,
    playbackOptions: PlaybackOptions(
        minResolution: .atLeast270p,
        maxResolution: .upTo1080p,
        renditionOrder: .default,
        playbackToken: playbackToken
    )
)
```