Define the advertising metadata.
var auditudeSettings = new AdobePSDK.AuditudeSettings();
auditudeSettings.domain = "auditude.com";
auditudeSettings.mediaId = "adbe_tearsofsteel2";
auditudeSettings.zoneId = "123869";
Add the advertising metadata to the MediaResource
.
var mediaResource =
new AdobePSDK.MediaResource(resourceUrl, resourceType, auditudeSettings, false);
Add the settings to the config and add a SpliceOut
parser factory.
var config = new AdobePSDK.MediaPlayerItemConfig();
config.advertisingMetadata = auditudeSettings;
config.advertisingFactory = new ExtCueOutContentFactory(auditudeSettings);
Add the ExtCueOutContentFactory
to the library section.
Download the ExtCueOutContentFactory.js
from the library section and place it in the working folder.
<script src= "frameworks/player/dash.min.js"></script>
<script src= "frameworks/player/primetimemain.min.js"></script>
<script src= "frameworks/player/swfobject.js"></script>
<script src= "frameworks/player/primetimeei.min.js"></script>
<script src= "ExtCueOutContentFactory.js"></script>
Test your configuration.