> 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 autoplay and loop

> Learn how to configure automatic playback and looping in the FastPix iOS Player.

Learn how to configure automatic playback and looping in the FastPix iOS Player.

## Autoplay

Autoplay starts playback automatically as soon as the content is ready, without requiring the user to tap play.

```swift
// Enable autoplay (disabled by default)
playerViewController.isAutoPlayEnabled = true

// Disable autoplay
playerViewController.isAutoPlayEnabled = false
```

When autoplay is enabled with a playlist, the player automatically transitions to the next item after the current one finishes.

## Playback loop

Playback loop restarts the video automatically when it reaches the end. This is useful for previews, short videos, or continuous playback experiences.

```swift
// Enable loop (disabled by default)
playerViewController.isLoopEnabled = true

// Disable loop
playerViewController.isLoopEnabled = false
```

Loop works across inline playback, full-screen, and Picture-in-Picture (PiP) modes.