This guide enables you to demonstrate CONNECT Player features and view the example code.

Prerequisites

Make sure you have the latest Android Studio installed, including:

  • Android SDK - install the latest version from Android Studio when prompted.

  • Gradle - use the newest version as recommended by Android Studio.

  • JDK - use the version provided with Android Studio.

Download the Android SDK pack, which supplies all the files needed to launch the player and start streaming content.

  • opy-sdk-android-<version>-example-code.zip
    This folder contains the application projects which demonstrate how to use simple and advanced features.

  • opy-sdk-android-<version>-sdk-integration.aar
    The SDK binary file used for integration purposes.

If you have requested NAGRA PRM support, use the PRM versions of the above files:

  • opy-sdk-android-<version>-example-code-prm.zip

  • opy-sdk-android-<version>-sdk-prm-integration.aar

You will also need the PRM Operational Vault file opvault.json.

  • A valid CONNECT Player licence (opy_licence file).
  • A device running Android 5.x (Lollipop) onwards with debugging, enabled; the player cannot run on an Android Studio simulator.

Procedure

  1. Save the SDK pack to your desktop and unzip it. The package contains a zipped set of example code, extract the contents of the  example-code.zip  file to your desktop.

  2. Copy the opy_licence to the \common\res\raw folder and the integration.aar file to \common\libs.

  3. Start Android Studio, select  Open an existing Android Studio project and then select the required project in the top-level directory of the extracted package. The following projects are available:
  4. Connect an Android device to your development machine via USB, and build and run the application.

For full details on integrating the SDK with your application, see the Android SDK 5 Integration GuideSee also the API reference guide provided in the Android SDK pack.