Use custom domain

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.