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.
Copy smartstreaming-release.aar provided with the release package to the theoplayer project, Example
app/libs/smartstreaming-release.aarAdd 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
hashSubscriberID: To hash the subscriber ID, set it totrue. To leave the subscriber ID un-hashed, set it tofalse.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
Step 5: Report Ended State
Last updated