> 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 custom domain

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

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

## Set a custom domain

By default, the SDK resolves playback URLs through `stream.fastpix.com`. To stream from your own domain, set the `customDomain` parameter:

```kotlin
private fun startPlayback() {
    player?.setFastPixMediaItem {
        playbackId = "YOUR_PLAYBACK_ID"
        customDomain = "stream.yoursite.com"
    }
}
```

## Why use a custom domain

* Stream videos from your own domain (for example, `stream.yoursite.com`) instead of default CDN URLs.
* Supports both public and private content.
* Combine with signed playback tokens to restrict access to authorized users.
* Improve performance and maintain branding consistency.
* Enables seamless transition for white-labeled apps.