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
  • Autoplay
  • Playback loop
iOS playerPlayback

Set autoplay and loop

Was this page helpful?
Previous

Build a custom player UI

Next
Built with

Learn how to configure automatic playback and looping in the FastPix iOS Player.

Autoplay

Autoplay starts playback automatically as soon as the content is ready, without requiring the user to tap play.

1// Enable autoplay (disabled by default)
2playerViewController.isAutoPlayEnabled = true
3
4// Disable autoplay
5playerViewController.isAutoPlayEnabled = false

When autoplay is enabled with a playlist, the player automatically transitions to the next item after the current one finishes.

Playback loop

Playback loop restarts the video automatically when it reaches the end. This is useful for previews, short videos, or continuous playback experiences.

1// Enable loop (disabled by default)
2playerViewController.isLoopEnabled = true
3
4// Disable loop
5playerViewController.isLoopEnabled = false

Loop works across inline playback, full-screen, and Picture-in-Picture (PiP) modes.