Configuring your License

Allowlist your Bundle Identifiers

In order to use the player in your app, you have to allowlist the bundle identifier (iOS) and/or Application ID (Android) of your app(s) into which you are integrating the player. This is a security mechanism and protects your license from being used elsewhere.

Allowlisting can be done in the Dashboard under Player > Licenses.

Set your Player license key

Once you got your Player license key from the Dashboard, you simply need to pass it to the player when creating it

import 'package:bitmovin_player/bitmovin_player.dart';

final player = Player(
  config: const PlayerConfig(
    key: '<YOUR-PLAYER-LICENSE-KEY>',
  ),
);

Set your Analytics license key

The player comes with an Analytics feature. To enable it, the Analytics license key which can be also found in the Dashboard needs to be provided as well when creating the Player instance

final player = Player(
  config: PlayerConfig(
    key: '<YOUR-PLAYER-LICENSE-KEY>',
    analyticsConfig: AnalyticsConfig(
      licenseKey: '<YOUR-ANALYTICS-LICENSE-KEY>'
    ),
  ),
);