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
  • Prerequisites
  • Android environment
  • FastPix setup
  • Add the SDK dependency
  • Add the GitHub Maven repository
  • Sync your project
  • What’s next
Android player

Install FastPix Android player

Was this page helpful?
Previous

Set up the player

Next
Built with

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

  • Set up the player to initialize the player in your Activity.
  • Play uploaded videos to stream your first video.