Skip to main content
Skip table of contents

PRM Example Code Quick Start

Use this guide to demonstrate CONNECT Player PRM features and view the example code.

For the development tools, current dependencies and minimum build configuration required, see (5.33.x) Prerequisites and dependencies.

Some features may have additional dependencies and libraries; see the README.md and build.gradle files in the relevant example code packages. 

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

  • opy-sdk-android-<version>-example-code-prm.zip
    This package demonstrates how to work with PRM-encrypted streams.

  • opy-sdk-android-<version>-sdk-prm-integration.aar
    PRM version of the SDK binary file used for integration purposes.
    The PRM Operator Vault file opvault.json is provided separately.

Procedure

  1. Extract the opy-sdk-android-<version>-example-code-prm.zip file to your desktop.

  2. Go to opy-sdk-android-<version>-example-prm > common, and place the opy-sdk-android-<versison>-sdk-prm-integration.aar file in the libs folder.

  3. Open Android Studio and select Open an Existing Project and locate the opy-sdk-android-<version>-example-code-prm folder

  4. For each project, expand src > main > res and create a new directory raw; add your opvault.json file to this folder. The existing one will not work with your PRM server.

  5. Connect an Android device to your development machine via USB, and build and run the application.

Click here to see the example projects available.

Encrypted playback

prm

Playback of PRM-encrypted content (Software PRM).

Offline playback

offline-hls

(5.33.x) Offline playback of HLS streams.

offline-service-prm

Offline playback with (5.33.x) Downloading as a service for DASH and HLS streams.

JavaScript errors detected

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

If this problem persists, please contact our support.