MediaMelon Android Media3 v1.1.1 SDK Integration Document
This guide provides detailed instructions on integrating the Android MediaMelon SDK with Media3 v1.1.1 player
Step 1: Prerequisites
Step 2: Set up the build environment
Step 3: Import Packages
Step 4: Register and Initialise SDK
Step 5: Report Ended State
Step 6: Variables and Description
Step 1: Prerequisites
Meida3 - v1.1.1 sample application.
MediaMelon SmartSight SDK Maven dependencies or the provided
smartstreaming_release.aar
AAR file is necessary.
Step 2: Set up the build environment
$MEDIA3PROJECT = {Media3 - v1.1.1}
The SDK files should be added to the build environment and the required network permissions should be enabled.
Using Maven:
Add MediaMelon Maven dependency to
$MEDIA3PROJECT/demos/main/build.gradle
Using AAR:
Copy
smartstreaming-release.aar
provided in the release package to the Media3 project. Example$MEDIA3PROJECT/demos/main/smartstreaming-release.aar
Add the following library to
$MEDIA3PROJECT/demos/main/build.gradle
:-
Add network permissions to $MEDIA3PROJECT/demos/main/src/main/AndroidManifest.xml
Step 3: Import Packages
$MEDIA3PROJECT/demos/main/src/main/java/androidx/media3/demo/main/PlayerActivity.java
Step 4: Register and Initialise SDK
The player application must register the SDK and provide player information once after player is initialised. Please note that values provided in this integration step persist across video sessions.
The SDK must be initialised at the start of each video session. Initialisation includes setting the application context, initialising the playback session, and indicating the intent for playback with the SDK.
The enableLogTrace()
feature should be enabled for testing during the integration process. Set this to False before releasing the player to production.
CUSTOMER_ID is your MediaMelon assigned Customer ID. If you do not know your Customer ID contact MediaMelon at customer-support@mediamelon.com.
Step 5: Report Ended State
In $MEDIA3PROJECT/demos/main/src/main/java/androidx/media3/demo/main/PlayerActivity.java
Step 6: Variables and Description
Last updated