Skip to main content
Skip table of contents

CONNECT Player SDK 5 for Android Documentation

The CONNECT Player SDK 5 for Android enables you to embed the player within an existing or new native Java or Kotlin application. The SDK wraps and extends the media player API, providing a similar interface to the Android Video view.

Supported versions and formats

Supported OS Versions​Adaptive Streaming FormatDRMAudio/Video ContainerEncrypt MethodBlock/Cypher
Android 5.x (Lollipop) onwardsDASHWidevine
PlayReady
PRM
ISOBMFF/F-MP4CENCAES 128 CTR
HLSPRMMPEG2-TSAES 128AES 128 CBC

Supported audio and video codecs

Video codecAudio codecComments
H.264AAC-LC
HE-AAC

H.265AAC-LC
HE-AAC
Only where the hardware supports H.265 decoding

SDK file contents

NAGRA supplies two variants of the SDK library, one with PRM support and one without. If PRM is not required, the Android SDK 5 package typically contains the following files:

If you have requested Playback of PRM encrypted content (Software PRM) support, PRM versions of the above files will be supplied:

  • opy-sdk-android-5.15.x-example-code-prm.zip
  • opy-sdk-android-5.15.x-sdk-prm-integration.aar
  • opy-sdk-android-5.15.x-sdk-prm-production.aar

The PRM Operator Vault file opvault.json is provided separately.

Dependencies

The table below lists the external library dependencies for integrating the SDK and its features. Dependencies for other features are listed under the relevant feature description.

DependencyVersionRequired for
androidx.appcompat:appcompat 1.2.0 Android X general support 
com.google.guava:guava 27.1-android Google Java Core Libraries 
androidx.room:room-runtime 2.2.5

Offline playback feature 

com.google.protobuf:protobuf-lite 3.0.1 Handling Widevine-encrypted content 
com.google.ads.interactivemedia.v3:interactivemedia 3.20.1 Playing Google IMA ads 
com.google.android.gms:play-services-ads-identifier 17.0.0Playing Google IMA ads 
insight-agent1.1.4NAGRA Insight agent for collecting statistics

Build configuration and tool parameters

To build an application with this SDK, the following have to be configured in your Gradle file(s):

Configuration item Configuration value 
compileSdkVersion30 or higher
minSdkVersion21 or higher 

Recommended tools versions

ToolRecommended version
Java JDK1.8
Gradle6.6
Android Gradle Plugin4.0.2

Open-source usage

The following third-party software is used and embedded within the CONNECT Player SDK 5 for Android.

Open SourceVersionLicenceWebsite
exo-player2.12.0Apache V2.0https://github.com/google/ExoPlayer/blob/release-v2/LICENSE
Java-side open-source libraries
protobuf-lite3.0.1MIThttps://github.com/elderapo/protobuf-lite/blob/master/LICENSE
guava27.1-androidApache V2.0https://github.com/google/guava/blob/master/LICENSE
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.