The Brid Developer Hub

Welcome to the Brid developer hub. You'll find comprehensive guides and documentation to help you start working with Brid as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Android SDK reference

Players android SDK reference

This SDK aims at easily embedding Brid videos on your Android application. It's based on ExoPlayer and supports Android 4.1 (API level 16) and later.

Add the SDK to your project

The easiest way to get started using Brid Player is to add it as a gradle dependency. First, you need to add maven repository to the build.gradle file in the root of your project:

repositories {
    maven { url '' }

Next, add a gradle compile dependency to the build.gradle file of your app module:

compile 'tv.brid.sdk:bridsdk:0.0.3'

Edit your AndroidManifest.xml file

Add the following directives to the application tag:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Use in your Activity or Fragment

First, add the FrameLayout holder in your layout where you want player to show.

        android:layout_height="wrap_content" />

Then in your Activity code just instantiate new Brid Player in that layout:

FrameLayout videoHolder = findViewById(;
BridPlayer bridPlayer = new BridPlayer(this, videoHolder);

And load video or playlist:

bridPlayer.loadVideo(playerId, videoId);
bridPlayer.loadPlaylist(playerId, playlistId);

Handling activity/fragment lifecycles

Your activity/fragment should take care of resources on pausing/resuming/destroying:

    public void onResume() {

    public void onPause() {

    public void onDestroy() {

Handle screen rotation

For the screen rotation to be handled correctly, you need to add:


to any activity using BridPlayer (in your AndroidManifest.xml)

View debug toast messages

To view debug messages, call the following method after creating BridPlayer object:


You can set debug level using the following constants: BridPlayer.DEBUG_LOG, BridPlayer.DEBUG_ERRORS, BridPlayer.DEBUG_ADS, BridPlayer.DEBUG_ANALYTICS, BridPlayer.DEBUG_ALL. For example:

    bridPlayer.setDebug(BridPlayer.DEBUG_ADS | BridPlayer.DEBUG_ANALYTICS);

Setting listeners

To monitor player events you can set listener:

    bridPlayer.setListener(new BridPlayer.BridPlayerListener() {
        public void onEvent(String status) {
            Log.d("PLAYER EVENT", status);

Example methods

Force autoplay:


Get index of video currently playing:


Get position in the video:


Other methods:;


This class can be used if you want to show fake player (poster image with play button and video title). You might find it useful in situations when you plan to launch video in a new activity, and don't need full featured player there. Consider using this approach when you need to show several players in the same activity or fragment.

BridPoster bridPoster = new BridPoster(this, videoHolder);
bridPoster.loadVideo(335, 186483);
bridPoster.setListener(new BridPoster.BridPosterListener() {
    if (event.equals(BridPoster.EVENT_PLAY_CLICKED)) {
        int playerId = data.getInt("playerId");
        int videoId = data.getInt("videoId");
        int playlistId = data.getInt("playlistId");

Updated 4 months ago

Android SDK reference

Players android SDK reference

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.