Having seen and tested the Connect Player features using the Example Code, use this guide to create your own player.
The following procedures describe how to create a new Connect Player application in Android, and add a video view to play specified clear video streams.
The following development tools need to be installed; the number in square brackets denotes the earliest supported version of the software verified by Nagra.
Java SDK - Download the JDK [Java v8] from http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Android Studio - Download the latest version of Android Studio from http://developer.android.com/sdk/index.html.
A device running Android 5.0 (Lollipop) or higher, connected to the PC via USB cable and recognised by the Android SDK.
The app requires a physical Android device with USB debugging enabled as per Android guidelines (http://developer.android.com/tools/device.html). It will not work on an emulator.
The external library dependency
androidx.appcompat:appcompat 1.0.2 is required for Android X general support. Dependencies for other features are listed under the relevant feature description.
Product release file
You will also need the following files (supplied by NAGRA as part of your release):
sdk-integration.aarThis file is used for integration activities. It is necessary for producing debug logs from the native part of the application, as this cannot be done once the native code is in production. The NAGRA logo will be displayed during playback to indicate that the integration variant is being used.
sdk-production.aarThis file replaces the integration version when the finished application is ready to be deployed. The NAGRA logo is not present during playback.
opy_licenceThis is an encrypted license enabling the player per platform, based on the user’s licence agreement. It is supplied separately once the product is purchased and will only work with the application id domain names provided at time of acquisition.
When performing an integration of the OpenTV Player SDK, NAGRA recommends that you do so in the following stages:
In conjunction with the Android SDK5 Example Code Quick Setup guide, use the code examples to explore and test the features of the OpenTV player.
Using this guide, create your own basic player. For details see:
Develop your code to add encrypted playback and other features to the player.
When development is complete, replace the integration file with the production version. Carry out final testing and submit to the Play Store.