> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://fastpix.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fastpix.com/docs/_mcp/server.

# Install FastPix iOS player

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

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](https://github.com/FastPix/iOS-player).

## 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](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app))

## 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:

```swift
import FastPixPlayerSDK
```

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

## What's next

* [Play uploaded videos](/docs/ios-player/play-uploaded-videos) to stream your first video.
* [Play live and on-demand streams](/docs/ios-player/play-live-and-on-demand-streams) to configure stream types.

## iOS player guides

Explore what you can do with the iOS player after installing it.

**Getting started**

* [Play uploaded videos](/docs/ios-player/play-uploaded-videos)
* [Handle playback errors](/docs/ios-player/handle-playback-errors)

**Playback**

* [Play live and on-demand streams](/docs/ios-player/play-live-and-on-demand-streams)
* [Adjust volume and mute](/docs/ios-player/adjust-volume-and-mute)
* [Control playback speed](/docs/ios-player/control-playback-speed)
* [Set playback resolution](/docs/ios-player/set-playback-resolution)
* [Set rendition order](/docs/ios-player/set-rendition-order)
* [Set autoplay and loop](/docs/ios-player/set-autoplay-and-loop)

**Player UI**

* [Build a custom player UI](/docs/ios-player/build-a-custom-player-ui)
* [Add a custom seek bar](/docs/ios-player/add-a-custom-seek-bar)
* [Add forward and rewind controls](/docs/ios-player/add-forward-and-rewind-controls)
* [Handle orientation changes](/docs/ios-player/handle-orientation-changes)

**Advanced features**

* [Secure video playback](/docs/ios-player/secure-video-playback)
* [Play DRM-protected content](/docs/ios-player/play-drm-protected-content)
* [Use a custom domain](/docs/ios-player/use-a-custom-domain)
* [Switch audio tracks](/docs/ios-player/switch-audio-tracks)
* [Switch subtitle tracks](/docs/ios-player/switch-subtitle-tracks)
* [Add seek preview thumbnails](/docs/ios-player/add-seek-preview-thumbnails)
* [Enable Picture-in-Picture](/docs/ios-player/enable-picture-in-picture)
* [Enable full-screen mode](/docs/ios-player/enable-full-screen-mode)
* [Manage playlists](/docs/ios-player/manage-playlists)
* [Add skip controls](/docs/ios-player/add-skip-controls)
* [Handle network changes](/docs/ios-player/handle-network-changes)

**Platforms**

* [Set up on tvOS](/docs/ios-player/set-up-on-tvos)

**Examples**

* [Complete integration example](/docs/ios-player/complete-integration-example)