Skip to navigation

Use a custom domain

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:

// Play with a custom domain
playerViewController.prepare(
playbackID: playbackID,
playbackOptions: PlaybackOptions(customDomain: "customDomain")
)

Play with a custom domain and token

Combine custom domain with token-based authentication:

// Play with a custom domain and playback token
playerViewController.prepare(
playbackID: playbackID,
playbackOptions: PlaybackOptions(
customDomain: "customDomain",
playbackToken: playbackToken
)
)

Play live streams from a custom domain

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

// Play a live stream from a custom domain with a token
playerViewController.prepare(
playbackID: playbackID,
playbackOptions: PlaybackOptions(
customDomain: "customDomain",
playbackToken: playbackToken,
streamType: "live"
)
)