Custom SDK Integration Document
This guide is for integrating the MediaMelon Custom SDK for the JavaScript-based Web Players
Step 1: Add MediaMelon Player SDK
<script type="text/javascript" src="https://sdk.mediamelon.com/SDK_RELEASES/Javascript/customsdk/1.3.11/mmsmartstreamingsdk.min.js"></script>npm i mediamelon-js-custom-sdkimport { mmJSCustomAdapter, MMPlayerState, RenditionInfo, RequestStatus} from 'mediamelon-js-custom-sdk'Step 2: Register and Initialize MediaMelon Player SDK
Step 2.1: Instantiate and Register SDK:
Step 2.2: Report Player Information:
Step 2.3: Report Application Information:
Step 2.4: Report Device Information:
Step 2.5: Report Experiment Name & Sub Property ID:
Step 2.6: Initialize Session with Content Metadata:
Step 2.7: Report View Session ID:
Step 3: Custom Metadata
Step 4: Stream and Network Information
Step 4.1: Report Stream Information:
Step 4.2: Update Stream URL:
Step 4.3: Report Presentation Info:
Step 4.4: Report Track Information
Step 4.5: Report Rendition:
Step 4.6: Update DRM Type:
Step 4.7: Report Network Information:
Step 5: Chunk/Segment Information
Step 5.1: Report Download Rate:
Step 6: Player Events
Step 6.1: Report Player State
Step 6.2: Report Buffering
Step 6.3: Report Seek
Step 6.4: Report Error
Step 6.5: Report Warning
Step 6.6: Report Playback Position
Step 7: Fallback & Request Status
Step 7.1: Report Fallback Event
Step 7.2: Report Request Status
Step 8: Ad Data & Ad Events
Step 8.1: Report Ad Break Start & End:
Step 8.2: Report Ad Data, Ad Start & End:
Last updated