This guide enables you to demonstrate CONNECT Player features and view the example code.
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.
This folder contains the application projects which demonstrate how to use simple and advanced features.
The SDK binary file used for integration purposes.
If you have requested PRM-protected playback with PAK support, use the PRM versions of the above files:
You will also need the PRM Operational Vault file opvault.json.
A device running Android 5.x (Lollipop) onwards with debugging, enabled; the player cannot run on an Android Studio simulator.
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.
- 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:
- basic-playback This demonstrates playback of a clear stream with no additional functionality.
- chromecast Clear playback with support for Chromecast
- dynamic-ads-ima Clear playback with adverts with Google IMA.
- encrypted-playback Playback of Widevine protected playback.
- encrypted-playback-playready Playback of Playback of PlayReady encrypted content.
- customised-encrypted-playback Non-default implementation of Widevine protected playback.
- event-timeline Clear playback with feedback and analysis of performance tracking or playback issues.
- insight Sends playback metrics and statistics to an Insight analytics server.
- multi-instance Provides multiple instances of the player.
- offline Offline playback of DASH streams.
- offline-service Downloading as a service for DASH streams.
- resolution-capping Clear playback with resolution capping.
- thumbnails Clear playback with thumbnail previews.
- track-selection Clear playback with multi-audio.
- Connect an Android device to your development machine via USB, and build and run the application.