MediaMelon Shaka Player SDK Integration Document
This guide is for integrating the MediaMelon Player SDK for the javascript based Shaka Player
Step 1: Add the MediaMelonPlayer SDK
<script type="text/javascript" src="https://sdks.mediamelon.com/web/shaka/2.5.1/mmsmartstreaming_shakaplayer.min.js"></script>npm i [email protected]
import {SHAKAPlayerMMSSIntgr} from 'mediamelon-js-shaka-sdk'Step 2: Register and Initialize the MediaMelon Player SDK
Step 2.1: Instantiate and Register SDK:
var mmShakaPlugin = new SHAKAPlayerMMSSIntgr();
mmShakaPlugin.registerMMSmartStreaming("PLAYER_NAME",
"CUSTOMER_ID",
"SUBSCRIBER_ID",
"DOMAIN_NAME",
"SUBSCRIBER_TYPE",
"SUBSCRIBER_TAG",
hashSubscriberId //Boolean
);Step 2.2: Report Player Information:
Step 2.3: Report Application Information:
Step 2.4: Report Experiment Name & Sub Property ID:
Step 2.5: Report Device Information:
Step 2.6: Initialize Session with Content Metadata:
Step 3: Errors and Warnings (Important)
Step 4: Report Additional Metadata Fields
Step 4.1: CDN:
Step 4.2: Custom Metadata:
Step 4.3: Stream Information:
Step 4.4: Player resolution:
Step 4.5: Report Stream Fallback Event
Step 5: Update Asset Information
Release Notes
PreviousMediaMelon JS Custom SDK Integration DocumentNextMediaMelon VideoJS Player SDK Integration Document
Last updated