Setting up Dependencies

Since Bitmovin's native Android SDK is distributed through a custom Maven repository, the installation cannot be managed by Flutters auto-linking feature and requires some extra steps. Please refer to the installation instructions for each platform below. For more information on integrating the native SDKs, you can refer to the Getting Started guides.

Adding the pub.dev package dependency

The bitmovin_player library is published on pub.dev. To add it to your Flutter app, use flutter pub add bitmovin_player or add it manually to your pubspec.yaml:

dependencies:
  bitmovin_player: ^0.1.0

Do not forget to run flutter pub get afterwards.

Setting up iOS dependencies

Run pod install (try with --repo-update in case of repository errors) in the ios folder.

Here's an example ios/Podfile:

source 'https://cdn.cocoapods.org'

# iOS version should be 14 or greater.
platform :ios, '14.0'

## The rest of your Podfile ##

⚠️ The command might fail due to the incorrect minimum deployment target being set for the Runner project. Set the deployment target and minimum deployment version to at least iOS 14 in the Runner project to fix this.

Setting up Android dependencies

  1. Add Bitmovin's Maven repository to android/build.gradle:

    allprojects {
       repositories {
           google()
           mavenCentral()
           
           maven {
               url 'https://artifacts.bitmovin.com/artifactory/public-releases'
           }
       }
    }
    
  2. Enable Multidex support if needed. Follow this guide to enable it: https://developer.android.com/build/multidex