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
      • Enable secure video playback
      • Use custom domain
      • Switch audio tracks
      • Switch subtitle tracks
      • Add seek preview thumbnails
      • Enable fullscreen mode
      • Monitor video data
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Set a custom domain
  • Why use a custom domain
Android playerAdvanced features

Use custom domain

Was this page helpful?
Previous

Switch audio tracks

Next
Built with

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:

1private fun startPlayback() {
2 player?.setFastPixMediaItem {
3 playbackId = "YOUR_PLAYBACK_ID"
4 customDomain = "stream.yoursite.com"
5 }
6}

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.