Skip to content

Downloads and offline playback series

Gradle dependencies

To use the download- and offline playback-functionality, your project will need a few extra Enigma River Android SDK modules.

Prerequisite dependencies

It is assumed that you already have the dependencies to core and exoplayerintegration in your build.gradle:

// in build.gradle of your app-module
...
dependencies {
    ...
    implementation 'com.github.EricssonBroadcastServices.EnigmaRiverAndroid:core:__REPLACE_WITH_RELEASE_VERSION__'
    implementation 'com.github.EricssonBroadcastServices.EnigmaRiverAndroid:exoplayerintegration:__REPLACE_WITH_RELEASE_VERSION__'
    ...
}
...

The Download module

This module provides a player implementation independent interface for working with downloads together with the Red Bee Media OTT backend and the rest of the Enigma River Android SDK.

Add this to you build.gradle:

// in build.gradle of your app-module
...
dependencies {
    ...
    implementation 'com.github.EricssonBroadcastServices.EnigmaRiverAndroid:download:__REPLACE_WITH_RELEASE_VERSION__'
    ...
}
...

The ExoPlayerDownload module

In addition to the Download module, you will need a player implementation specific module to serve as the bridge between the Download module and the player implementation module (in our case the ExoPlayer integration module).

Add this to you build.gradle:

// in build.gradle of your app-module
...
dependencies {
    ...
    implementation 'com.github.EricssonBroadcastServices.EnigmaRiverAndroid:exoPlayerDownload:__REPLACE_WITH_RELEASE_VERSION__'
    ...
}
...


Table of Contents
Prerequisites
• Gradle dependencies (current)
Check if an asset is downloadable
Using the download API
Get available tracks for download
Start asset download
Managing ongoing downloads
Listing downloaded assets
Start playback of a downloaded asset
Remove downloaded assets
Downloads app