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
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Before you begin
  • Add the SDK with Swift Package Manager
  • Import the SDK
  • What’s next
iOS player

Install FastPix iOS player

Was this page helpful?
Previous

Play uploaded videos

Next
Built with

Learn how to add the FastPix iOS Player SDK to your Xcode project using Swift Package Manager.

The FastPix iOS Player SDK lets you add video playback to your iOS app. It supports both live and on-demand streaming, and integrates directly into native iOS workflows. You can find the source code in the FastPix iOS player GitHub repository.

Before you begin

Make sure you have:

  • Xcode installed on your Mac
  • An existing iOS project (or create a new one)
  • Familiarity with Swift Package Manager (Apple’s guide on adding package dependencies)

Add the SDK with Swift Package Manager

  1. Open your project in Xcode.
  2. In the Xcode menu bar, go to File > Add Packages.
  3. In the search field at the top-right corner, enter the SDK repository URL: https://github.com/FastPix/iOS-player
  4. Choose a Dependency Rule to control how Xcode handles SDK updates. By default, Xcode pulls the latest version from the main branch. You can specify a particular version or set a range of compatible versions.
  5. Click Add Package.

Import the SDK

After installing the SDK, import it into the Swift files where you need video playback.

  1. Open the Swift file where you want to use the SDK (for example, ViewController.swift).
  2. Add the following import statement at the top of the file:
1import FastPixPlayerSDK

After importing, you can access all the classes, methods, and features provided by the SDK.

What’s next

  • Play uploaded videos to stream your first video.
  • Play live and on-demand streams to configure stream types.