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
      • Play live and on-demand streams
      • Adjust volume and mute
      • Control playback speed
      • Set playback resolution
      • Set rendition order
      • Set autoplay and loop
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Supported stream types
  • Play on-demand videos
  • Play live streams
  • What’s next
iOS playerPlayback

Play live and on-demand streams

Was this page helpful?
Previous

Adjust volume and mute

Next
Built with

Learn how to configure the FastPix iOS Player for live and on-demand video playback.

The streamType parameter controls how the FastPix iOS Player handles media. Set it based on the type of content you’re streaming.

Supported stream types

The FastPix iOS Player supports two stream types:

  • on-demand: For pre-recorded, non-live content. This is the default.
  • live: For real-time streaming content.

Play on-demand videos

To play an on-demand video, set the streamType to "on-demand" in PlaybackOptions. If you don’t specify a stream type, the player defaults to on-demand.

1// Play an on-demand video (explicit stream type)
2playerViewController.prepare(
3 playbackID: playbackID,
4 playbackOptions: PlaybackOptions(streamType: "on-demand")
5)

Note: If you omit the streamType, the player treats the content as on-demand by default.

Play live streams

To play a live stream, set the streamType to "live" and provide the playback ID for the live stream.

1// Play a live stream
2playerViewController.prepare(
3 playbackID: playbackID,
4 playbackOptions: PlaybackOptions(streamType: "live")
5)

What’s next

  • Secure video playback to protect streams with token-based authentication.
  • Set playback resolution to control video quality.