Basics series¶
Project setup¶
Permissions required by the SDK¶
The following permissions are required for the SDK to function. Remember to add them to your AndroidManifest.xml
.
* <uses-permission android:name="android.permission.INTERNET" />
- Needed to access the Red Bee Media OTT backend.
Adding Enigma River libraries to your project¶
The Enigma River Android SDK uses jitpack.io for library distribution. So to add the libraries as dependencies to your project you also need to add jitpack as a repository.
Note¶
There are 2 build.gradle
files in your project. One in the 'parent-project' and one in the 'app-module'. You should be editing the build.gradle
file located in your app-module (typically located at /MyProjectName/app/build.gradle
)
...
repositories {
...
maven { url "https://jitpack.io" }
...
}
...
The Enigma River SDK does not handle video playback itself - it uses a 'player implementation' for this. So in addition to the core
library you also need to add a player implementation library and any additional libraries needed for that particular player implementation.
For using ExoPlayer as the player implementation, add the following lines to your app-module build.gradle
file.
...
android {
...
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
}
...
}
...
repositories {
...
google() //Needed for ExoPlayer
jcenter() //Needed for ExoPlayer
...
}
...
dependencies {
...
implementation "com.github.EricssonBroadcastServices.EnigmaRiverAndroid:core:__REPLACE_WITH_RELEASE_VERSION__"
implementation "com.github.EricssonBroadcastServices.EnigmaRiverAndroid:exoplayerintegration:__REPLACE_WITH_RELEASE_VERSION__"
}
...
There is also an optional utility module that provides native (Java) objects for accessing additional endpoints of the exposure REST-api. You can add include it by also adding the following dependency:
implementation "com.github.EricssonBroadcastServices.EnigmaRiverAndroid:exposureUtils:__REPLACE_WITH_RELEASE_VERSION__"
Table of Contents
Prerequisites
Introduction
• Project setup (current)
Your first app