Bitmovin SDK Integration Document

This page describes the integration of the MediaMelon Player SDK with Bitmovin Player on the Android platform

Step 1: Prerequisites

Step 2: Set up the build environment

Step 3: Integrate MediaMelon Player SDK Code to Basic Playback App

Step 4: Report Content Metadata

Step 5: Report Custom Metadata

Step 6: Report Ended State

Step 7: Update Asset Info Dynamically

Step 8: Set Content Provider URL

Step 1: Prerequisites

  1. MediaMelon SmartSight SDKsmartstreaming-release.aar

  2. MediaMelon-assigned Customer ID

If you do not know your Customer ID contact MediaMelon at [email protected]

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 BasicPlayback/smartstreaming-release.aar

  2. Add network permissions to

    app/src/main/AndroidManifest.xml

  3. Add the following library to BasicPlayback/build.gradle :-

Step 3: Integrate MediaMelon Player SDK Code to Basic Playback App

The player application must register the MediaMelon Player 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 initialised.

Note:

Please provide the hashSubscriberId value in setSubscriberInformation(), hashSubscriberId boolean variable indicates whether the SUBSCRIBER_ID to be hashed or not.

Use the setIsLive API to set true for a live stream and false for a VOD stream. If not set here, SDK will set it internally.

Step 4 : Report Content Metadata

To enable Content Metadata , user need to include the following package in BasicPlayback app.

Step 5: Report Custom Metadata (Optional)

Step 6: Report Ended State

Step 7: Update AssetInfo Dynamically (Optional)

If Asset Information needs to be updated dynamically during the live session without re-initiating the player, then the "updateAssetInfo” API can be used to update the new AssetInfo.

Note:

  1. This API must be called for updating asset info for the live streams only

  2. This API must be called after the Player has started the playback of the live stream.

  3. New Asset Info Object will override the previous values, hence set all the fields that are required every time before calling this API.

Step 8: Set Content Provider URL(Optional)

Use this step only to report QOE data to content provider.

Last updated