The configuration for this example is:
<script type="text/javascript">
function onAdSchedulingStarted() {
debug("OVA CALLBACK: Ad scheduling started");
}
function onLoadOnDemandAdSlotScheduled(slot) {
debug("OVA CALLBACK: On-demand Ad Slot scheduled");
debug(slot);
++onDemandSlotCount;
}
function onAdSlotLoaded(slot) {
debug("OVA CALLBACK: On-demand Ad Slot loaded");
debug(slot);
}
....
function onAdSchedulingComplete(ads) {
debug("OVA CALLBACK: Ad scheduling complete - " + ads.length + " ads scheduled");
debug(ads);
}
jwplayer("container").setup({
flashplayer: "",
width: 540,
height: 360,
controlbar: "bottom",
playlist:[
{
file: "http://streaming.openvideoads.org/shows/bbb-640x360.mp4",
duration: 30
}
],
plugins: {
"../../../dist/swf/ova-jw.swf": {
"ads": {
"companions": {
"regions": [
{ "id":"companion", "width":"300", "height":"250" }
]
},
"servers": [
{
"type": "OpenX",
"apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
}
],
"notice": { "textStyle": "smalltext" },
"schedule": [
{
"zone": "6",
"position": "pre-roll",
"loadOnDemand": true
},
{
"zone": "33",
"position": "auto:bottom",
"width": 450,
"height": 50,
"startTime": "00:00:05",
"duration": "15",
"loadOnDemand": true
}
]
},
"debug": {
"levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
}
}
}
});
</script>