Theoplayer SDK Integration Document

Step 1: Prerequisites

Step 2: Set up the build environment

Step 3: Register SDK

Step 5: Initialize Session

Step 10: Report Ended State

Step 1: Prerequisites

  • MediaMelon SmartSight SDK smartstreaming_release.aar

Step 2: Set up the build environment

The SDK files are added to the build environment and the required network permissions are enabled.

  1. Copy smartstreaming-release.aar provided with the release package to the theoplayer project, Example app/libs/smartstreaming-release.aar

  2. Add the following library to app/build.gradle :-

dependencies {
  .
  .
  .
   //<!-- <MMSmartStreaming 1a> -->
    api files ('smartstreaming-release.aar')
  //<!-- </MMSmartStreaming 1a> -->
}

Add network permissions to

app/src/main/AndroidManifest.xml

Step 3: Register SDK

The player application must register the SDK and provide player information once when the application launches. Please note that values provided in this integration step persist across video sessions. This is typically done when the player itself is initialized.

Step 3a: Import packages

app/src/main/java/com/theoplayer/theoplayerexample/MainActivity.java

Step 3b: Registration

Perform registration tasks by modifying the onCreate() method in app/src/main/java/com/theoplayer/theoplayerexample/MainActivity.java

The enableLogTrace() feature should be enabled for testing during the integration process. Set this to False before releasing the player to production

  • hashSubscriberID: To hash the subscriber ID, set it to true. To leave the subscriber ID un-hashed, set it to false.This is optional

Step 4: Initialize Session

The SDK must be initialized at the start of each video session. Initialization includes setting the application context, initializing the playback session, and indicating the intent for playback with the SDK.

app/src/main/java/com/theoplayer/theoplayerexample/MainActivity.java

  • isLive: Set it to true for a live video and false for a VOD video. This is optional.

Step 5: Report Ended State

Last updated