For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • Player SDKs
    • Introduction
  • Web player
    • Install the FastPix web player
    • Play uploaded videos
    • Handle playback errors
  • Android player
    • Install FastPix Android player
    • Set up the player
    • Play uploaded videos
    • Handle playback errors
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
      • Secure video playback
      • Use a custom domain
      • Optimize live streaming
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • On-demand from a custom domain
  • Live stream from a custom domain
Flutter playerAdvanced features

Use a custom domain

Was this page helpful?
Previous

Optimize live streaming

Next
Built with

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

1final dataSource = FastPixPlayerDataSource.hls(
2 playbackId: 'your-playback-id-here',
3 streamType: StreamType.onDemand,
4 customDomain: "custom-domain",
5 token: "jwt-token",
6);

Live stream from a custom domain

1final dataSource = FastPixPlayerDataSource.hls(
2 playbackId: 'your-playback-id-here',
3 streamType: StreamType.live,
4 customDomain: "custom-domain",
5 token: "jwt-token",
6);

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.