> 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.

# Use a custom domain

> Learn how to stream videos from your own domain using the FastPix iOS Player.

Learn how to stream videos from your own domain using the FastPix iOS Player.

The FastPix iOS Player lets you play videos from a custom domain. You don't need to specify stream types, tokens, or additional playback configurations — just provide your custom domain, and the player handles the rest.

## Play videos from a custom domain

Pass the `customDomain` parameter in `PlaybackOptions`:

```swift
// Play with a custom domain
playerViewController.prepare(
    playbackID: playbackID,
    playbackOptions: PlaybackOptions(customDomain: "customDomain")
)
```

## Play with a custom domain and token

Combine custom domain with token-based authentication:

```swift
// Play with a custom domain and playback token
playerViewController.prepare(
    playbackID: playbackID,
    playbackOptions: PlaybackOptions(
        customDomain: "customDomain",
        playbackToken: playbackToken
    )
)
```

## Play live streams from a custom domain

For live streams, include the `streamType` along with the custom domain:

```swift
// Play a live stream from a custom domain with a token
playerViewController.prepare(
    playbackID: playbackID,
    playbackOptions: PlaybackOptions(
        customDomain: "customDomain",
        playbackToken: playbackToken,
        streamType: "live"
    )
)
```