Bitmovin Android v3 (Nowtilus SSAI) with Content Provider Metrics

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

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 1: 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

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    
    <!-- <MMSmartStreaming 1a> -->
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <!-- </MMSmartStreaming 1a> -->
  3. Add the following library to BasicPlayback/build.gradle :-

    dependencies {
        ...
        ...
        implementation("com.github.MediamelonSDK:mediamelon_bitmovin_sdk:1.0.13")
        ...
    }

Step 2: 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 initialized.

Note:

Please provide the exact correct details in all fields like CUSTOMER_ID, ASSET_ID, ASSET_TITLE, VIDEO_ID, PLAYER_BRAND, PLAYER_MODEL, PLAYER_VERSION, PLAYER_NAME, DOMAIN_NAME, SUBSCRIBER_ID, SUBSCRIBER_TYPE & SUBSCRIBER_TAG.

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

This data helps in debugging through MediaMelon SmartSight if anything goes wrong.

Added the isLive API in sample application, if isLive value needs to set externally then use the following API, else if it needs to set by the player then don’t call the API.

Variable

Description

$PLAYERNAME

String containing the player version (e.g. “Bitmovin_Android_Player_2.28.0”).

$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. (Optional)

$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.

$PLAYER_BRAND

String containing the player brand (e.g. “bitmovin”).

$PLAYER_MODEL

String containing the 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.

$PLAYER_VERSION

String containing the player version.

Step 3 : (Optional) Report Content Metadata

Optionally, the user of the MediaMelon Player SDK may choose to set additional content metadata metrics as below:

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

Step 4: (Optional) Disable Manifest Fetch

If your workflow restricts the manifest to be accessible from both player and SDK simultaneously, then, you can disable the fetch of manifest via API disableManifestsFetch:

Step 5:(Optional) Report custom metadata

Step 6: Report player ended call in onDestroy() Listener in sample application

Step 7:(Optional) Update assetInfo dynamically

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 calling this API.

Step 8: To Add Listener , get the Ad events from SSAIAdManager

List of AD EVENTS

mmAd Object

mmAdTimelineInfo Object

COMPLETE INTEGRATION

Last updated

Was this helpful?