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

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

If your FastPix setup uses a custom CDN domain, you can configure it in the data source. This tells the player to construct URLs using your domain instead of FastPix defaults.

## On-demand from a custom domain

```dart
final dataSource = FastPixPlayerDataSource.hls(
  playbackId: 'your-playback-id-here',
  streamType: StreamType.onDemand,
  customDomain: "custom-domain",
  token: "jwt-token",
);
```

## Live stream from a custom domain

```dart
final dataSource = FastPixPlayerDataSource.hls(
  playbackId: 'your-playback-id-here',
  streamType: StreamType.live,
  customDomain: "custom-domain",
  token: "jwt-token",
);
```

> **Note:** You don't need to specify a domain if you're using FastPix-hosted playback. This step is optional unless you've customized your delivery configuration.