Install FastPix Android player

Learn how to add the FastPix Android Player SDK to your Android project.

The FastPix Android Player SDK is a Media3-based playback library built on ExoPlayer. It supports live and on-demand video streaming, playback security, analytics, track switching, and resolution control. You can find the source code in the FastPix Android Player GitHub repository.

Prerequisites

Android environment

  • Android Studio: Arctic Fox or later
  • Android SDK: Version 24+
  • GitHub Personal Access Token (PAT) for private Maven access

FastPix setup

Complete these steps in the FastPix Dashboard before integrating the SDK:

  1. Sign in to dashboard.fastpix.com.
  2. Create a media asset (through the UI or API, using push or pull URL).
  3. Go to View Media, select your uploaded file, and copy the playbackId.
  4. Use this playback ID in your app to generate the playback URL.

Add the SDK dependency

Open your app-level build.gradle file (or build.gradle.kts for Kotlin DSL) and add the following under dependencies:

1dependencies {
2 // Check for latest version
3 implementation("io.fastpix.player:android:1.0.5")
4}

Add the GitHub Maven repository

Open your settings.gradle (or settings.gradle.kts) file. You need a GitHub Personal Access Token (PAT) to access the private Maven package.

Recommended: Load credentials from local.properties so you don’t hardcode secrets.

Add the following inside the repositories section:

1repositories {
2 maven {
3 url = uri("https://maven.pkg.github.com/FastPix/fastpix-android-player")
4 credentials {
5 gpr.user=<your_github_username>
6 gpr.key=<your_github_pat>
7 }
8 }
9}

Sync your project

Click Sync Now in the notification bar to download and integrate the SDK. Once synced, you can use the FastPix Player SDK in any part of your Android project.

What’s next

Android player guides

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

Getting started

Playback

Advanced features

Examples