Roku with IMA SDK
This document describes the Roku MediaMelon Player IMA 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="imaads" type="assocarray" alwaysNotify="true"/>
<field id="isAdImpressionSent" 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: Google IMA Ads Integration
5.1. Include MediaMelon Ad Plugin:
5.2. Create an IMA Stream Player:
5.3. Add Event Listeners and Start the Stream:
Step 6: Variables and Description
Last updated