Kaltura Android Player Integration with Mediamelon SDK
This document provides a step by step guide to integrate the Mediamelon SDK with the Kaltura Player 4.2.59
Prerequisites
Kaltura Player Playtkit https://github.com/kaltura/playkit-android
MediaMelon Kaltura Player Plugin (com.github.MediamelonSDK:mm-KalturaPlayer:1.1.1)
IMADAISample from https://github.com/kaltura/playkit-android-samples/tree/develop/
Allsamples folder from https://github.com/kaltura/playkit-android-samples/tree/develop/AllSamples ( AllSamples folder and BasicPluginSetup need to be at the same level )
Step 1: Set up the build environment
The SDK files are added to the build environment and the required network permissions are enabled.
Copy mediamelonplugin-release.aar provided with the release package to the libs folder ( create one if its not already there ) in the BasicPluginsSetup project
Add the following library to
IMADAISample/app/build.gradle
:-
Add network permissions to IMADAISample/app/manifests/AndroidManifest.xml
Step 2: Include and Configure the MediaMelon Plugin
The MediaMelon plugin needs to be configured . The following steps need to be executed.
Step 2a: Import packages
The MediaMelon plugin package needs to be imported in the following file
IMADAISample/app/com/kaltura/playkit/samples/imadaisample/MainActivity.java
Step 2b: Configure the Plugin
Add the following function createPluginConfigs in the file IMADAISample/app/com/kaltura/playkit/samples/imadaisample/MainActivity.java
Variables to be configured are as follows
Variable | Description |
---|---|
playerName | String containing the Player Name. |
customerId | String containing your MediaMelon-assigned Customer ID. |
subscriberId | String containing your Subscriber’s ID. If you do not use subscriber IDs, enter null |
domainName | String containing your section of your subscriber or assets. |
subscriberType | String containing the Subscriber Type (e.g. “Free”, “Paid”). If you do not use subscriber types, enter null |
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. |
assetId | String containing Asset Id. |
assetName | String containing Asset Name. |
videoID | String containing your video’s ID. If you do not use videos IDs, enter null. |
contentType | String containing type of the Content. For example - "Movie", "Special", "Clip", "Scene Epis Lifts". |
genre | String containing Genre of the content. For example - "Comedy", "Horror". |
drmProtection | Widevine, Fairplay, Playready etc. Unknown means content is protected, but protection type is unknown. For clear contents, do not set this field |
episodeNumber | String containing sequence number of the Episode. |
season | String containing the Season. For example - "Season1". |
seriesTitle | String containing Title of the Series. |
playerBrand | String containing Player Brand. |
playerModel | String containing Player Model. For example - This could be a variant of player. Say name of third party player used by organisation. Or any human readable name of the player. |
playerVersion | String containing Player Version. |
appName | String containing the name of the application |
appVersion | String containing the version of the application |
deviceMarketingName | String containing the marketing name associated with the device |
deviceId | String containing the device id |
videoQuality | String containing the video quality supported by the device |
Any variable not part of the list above will need to be set as a custom tag | Any variable which is not part of the above list will need to be set as a custom tag by the plugin library |
Last updated