MediaMelon VideoJS Player SDK Integration Document
This guide is for integrating the MediaMelon Player SDK for the javascript based VideoJS Player
Step 1: Add the MediaMelonPlayer SDK
<script type="text/javascript" src="https://sdks.mediamelon.com/web/videojs/1.3.0/mmsmartstreaming_videojsplayer.min.js"></script>npm i [email protected]
import {VideoJSMMSSIntgr} from 'mediamelon-js-videojs-sdk'Step 2: Register and Initialize the MediaMelon Player SDK
Step 2.1: Instantiate and Register SDK:
var mmVideoJSPlugin = new VideoJSMMSSIntgr();
mmVideoJSPlugin.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
Release Notes
PreviousMediaMelon Shaka Player SDK Integration DocumentNextMediaMelon Bitmovin Web SDK Integration Guide
Last updated