Sidhanth Sur
Sidhanth Sur

Reputation: 303

Brightcove exoplayer in SDK 4.6.1 is not getiing imported

I have tried maven/ compiled it as per the documentation . But the exo player in the android SDK isn't getting imported. This I have to use since I want to stream a HLS video.

import com.brightcove.player.view.BrightcoveExoPlayerVideoView;
This isn't getting imported.

Upvotes: 0

Views: 1176

Answers (2)

Paul Reilly
Paul Reilly

Reputation: 66

In order to use the BrightcoveExoPlayerVideoView from gradle, you need to add the Brightcove public maven repo to your repositories. Something like this:

repositories {
  jcenter()

  maven {
    url 'http://repo.brightcove.com/releases'
  }
}

and then you need to add the dependency to your dependencies:

dependencies {
  compile "com.brightcove.player:exoplayer:4.7.2"
}

Upvotes: 2

ninjayoto
ninjayoto

Reputation: 703

The same here in Android Studio, even version 4.7.2 My guess is Gradle version incompatibility.

But manually importing the jar library should do the trick for now:

Download the SDK from https://docs.brightcove.com/en/perform/mobile-sdks/brightcove-player-sdk-for-android/index.html

In Android Studio Click on Project Structure

Select the Dependencies tab

Click on the small + sign on the left to add

Select Import Jar/.aar Package

Browse to where you downloaded the above SDK and import it

Now it's imported and ready

Upvotes: 0

Related Questions