[object Object] Icon

Learn how to create, start, manage and modify Encodings

[object Object] Icon

Learn how to create, start, manage and modify Players

[object Object] Icon

Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Android / AndroidTV SDK

The following tutorials show you how to integrate, configure and customize your Bitmovin Player on Android.

Step 1: Add the SDK to your ProjectLink Icon

Add a Link to the Player SDK to the Project

Add a link to our release repository to your application's build.gradle file. In addition to that, the google maven repository must be added.

Add the Dependency to the Project

Add the Bitmovin Player Android SDK as a dependency to your project as shown below, while replacing {version-number} with the desired SDK version number. The available SDK versions are listed in our maven repository.

Step 2: Setup ProjectLink Icon

Edit Manifest

The Bitmovin Player license key and the necessary permissions have to be added to the manifest file. The license key should be added inside the application element.

Alternatively, you can specify the license key in the PlayerConfig.

The player requires the INTERNET permission. The following line should be added inside the manifest element.

Step 3: Setup the PlayerLink Icon

Instantiate the Player (quick setup)

To get started quickly with the default Bitmovin Web UI, the PlayerView can be added to the layout:

Then you need to create the source.

The last step is to get the player instance in the Activity and load the source into it:

Instantiate the Player (advanced setup)

For more elaborate work flows like specific configurations or a custom UI, the player can be created explicitly as such:

This player can then be attached to a PlayerView:

Alternatively, a custom UI can be implemented. See the corresponding sample for details.

Finally, a source is created and loaded into the player.

Step 4: Configure your Player LicenseLink Icon

Allowlist Application ID

In order to use the player in your app you have to allowlist the application ID (package name) of your app. This is a security mechanism and protects your license from being used elsewhere.

Application ID allowlisting can be done in the dashboard under Player -> Licenses.


Step 5: Final ReviewLink Icon

In this tutorial you learned how to add the Bitmovin Player Android SDK to your project, set up the player license, use the player and how to configure it.

Now you can start having a look at the API reference and adapt the player to your needs.

ExamplesLink Icon

You can download fully functional code examples from our Github account.


Give us feedback