Theoplayer v7.5.0 with Mediamelon SDK
Prerequisites
MediaMelon SmartSight SDK
smartstreaming_release.aar
Step 1: 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.aar
Add the following library to
app/build.gradle
:-
Add network permissions to
app/src/main/AndroidManifest.xml
Step 2: 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 2a: Import packages
app/src/main/java/com/theoplayer/theoplayerexample/MainActivity.java
Step 2b: 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 totrue
. To leave the subscriber ID un-hashed, set it tofalse
.This is optional
Parameters passed in Registration call
$PLAYERNAME
Player Name as in ExoPlayer, KalturaPlayer etc.
$CUSTOMERID
String containing your MediaMelon-assigned Customer ID.
$SUBSCRIBERID
String containing your subscriber’s ID. If you do not use subscriber IDs, leave it as it is.
$DOMAINNAME
String containing your section of your subscriber or assets. (Optional)
$SUBSCRIBERTYPE
String containing the subscriber type (e.g. “Free”, “Paid”). If you do not use subscriber types, leave it as it is.
$SUBSCRIBERTAG
String containing an additional subscriber-specific information. This is sent in clear (not hashed) to SmartSight and it is advised to not send sensitive information in this field.
Step 3: 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 totrue
for a live video andfalse
for a VOD video. This is optional.
Step 4: Report ended state when the Activity is destroyed
Last updated