Roku with RAF SDK
This document describes the Roku MediaMelon Player SDK Integration with the Roku media player.
Step 1: Include MediaMelon SmartStreaming SDK
Step 2: Setup a new MediaMelon Task
<component name="MMTask" extends="Task">
<interface>
<field id="video" type="node" alwaysNotify="true" />
<field id="config" type="assocarray" alwaysNotify="true" />
<field id="customConfig" type="assocarray" alwaysNotify="true" />
<field id="contentMetadata" type="assocarray" alwaysNotify="true" />
<field id="customTags" type="assocarray" alwaysNotify="true" />
<field id="error" type="assocarray" alwaysNotify="true"/>
<field id="adError" type="assocarray" alwaysNotify="true"/>
<field id="view" type="String" alwaysNotify="true" />
<field id="exit" type="Boolean" alwaysNotify="true" />
<field id="mmAdData" type="assocarray" alwaysNotify="true" />
<field id="mmAdPlaying" type="Boolean" alwaysNotify="true" />
<field id="sdk_version" type="String" alwaysNotify="true" />
<field id="seekThreshold" type="Integer" alwaysNotify="true"/>
<field id="codecs" type="assocarray" alwaysNotify="true" />
<field id="isVideoLive" type="Boolean" alwaysNotify="true" />
</interface>
<script type="text/brightscript" uri="pkg:/components/MMSmartStream/MMSmartStreamWrapper.brs" />
<script type="text/brightscript" uri="pkg:/components/MMSmartStream/MMSmartStreamEngine.brs" />
<script type="text/brightscript" uri="pkg:/components//MMSmartStream/MMSmartStreamRokuPlugin.brs" />
<script type="text/brightscript" uri="pkg:/components/MMSmartStream/Utilities.brs" />
</component>
Step 3: MediaMelon Code Integrate
3.1. Add MMTask Child Component:
3.2. Create MM Task Node:
3.3. Set Configuration Details:
3.4. Set Content Metadata:
3.5. Set Custom Configuration Details:
3.6. Set Codecs:
3.7. Set Custom Metadata:
3.8. Set Seek Threshold:
3.9. Set is Video Live:
3.10. Set View:
3.11. Run the SDK:
Step 4: Error Handling
4.1. Video Error Reporting:
4.2. Ad Error Reporting:
Step 5: Ad Tracking with RAF
Step 6: Variables and Description
Last updated