Install FastPix Flutter player

Learn how to set up your FastPix account and add the FastPix Flutter Player SDK to your project.

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

Before you begin: set up media in FastPix

Before writing Flutter code, you need a playback ID. This is how FastPix identifies which video to stream.

  1. Sign in to the FastPix Dashboard.
  2. Create a media asset using either Push (you upload to FastPix) or Pull (FastPix fetches from your source URL). You can also use the FastPix API for programmatic asset creation.
  3. Go to the View Media page and locate the Playback ID.

Note: Playback IDs are case-sensitive, and each one maps to a single video stream. If your video is protected, you also need to generate a valid JWT token with appropriate access claims.

Install the SDK

You have two options:

Option A: Add from the terminal

$flutter pub add fastpix_video_player

Option B: Add the dependency directly in pubspec.yaml

1dependencies:
2 fastpix_video_player: 1.0.0

Then run:

$flutter pub get

Note: If you’re behind a proxy or using a CI/CD runner, verify that the SDK is being correctly fetched and cached. Run flutter pub deps to confirm installation.

Import the SDK

Import the SDK into any Dart file where you need video playback. Typically this is your main.dart or a feature module:

1import 'package:fastpix_player/fastpix_video_player.dart';

What’s next