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
      • Secure video playback
      • Play DRM-protected content
      • Use a custom domain
      • Switch audio tracks
      • Switch subtitle tracks
      • Add seek preview thumbnails
      • Enable Picture-in-Picture
      • Enable full-screen mode
      • Manage playlists
      • Add skip controls
      • Handle network changes
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Play videos from a custom domain
  • Play with a custom domain and token
  • Play live streams from a custom domain
iOS playerAdvanced features

Use a 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 iOS Player.

The FastPix iOS Player lets you play videos from a custom domain. You don’t need to specify stream types, tokens, or additional playback configurations — just provide your custom domain, and the player handles the rest.

Play videos from a custom domain

Pass the customDomain parameter in PlaybackOptions:

1// Play with a custom domain
2playerViewController.prepare(
3 playbackID: playbackID,
4 playbackOptions: PlaybackOptions(customDomain: "customDomain")
5)

Play with a custom domain and token

Combine custom domain with token-based authentication:

1// Play with a custom domain and playback token
2playerViewController.prepare(
3 playbackID: playbackID,
4 playbackOptions: PlaybackOptions(
5 customDomain: "customDomain",
6 playbackToken: playbackToken
7 )
8)

Play live streams from a custom domain

For live streams, include the streamType along with the custom domain:

1// Play a live stream from a custom domain with a token
2playerViewController.prepare(
3 playbackID: playbackID,
4 playbackOptions: PlaybackOptions(
5 customDomain: "customDomain",
6 playbackToken: playbackToken,
7 streamType: "live"
8 )
9)