Android SDK 4 Integration Guide
The following procedures describe creating a new OpenTV Player application in Android and adding an NMPVideoView to play specified clear and encrypted video streams.
OpenTV Player is also referred to as the NAGRA Media Player or NMP.
Prerequisites
This example shows how to build the app on Windows. The following development tools need to be installed; the number in square brackets is the earliest supported version of the software and version 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 4.4 or higher, connected to the PC via USB cable and recognised by the Android SDK (http://developer.android.com/tools/device.html).
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.
NAGRA supplies the following files as part of your release:
- The SDK files
- The Operator Vault file (opvault.json)
Integration process
We recommend you perform integration of OpenTV Player SDK 4 in the following stages:
- In conjunction with the Android SDK 4 Example Code Quick Start guide, use the code examples to explore and test the features of the OpenTV Player.
- Using this guide, create a 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 Google Play Store.