The configuration for this example is:
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);
}
flowplayer("a.example", "", {
playlist: [
{
url: "",
duration: 30
}
],
plugins: {
controls: {
autoHide: "always"
},
ova: {
url: "",
"canFireAPICalls": true,
"ads": {
"companions": {
"regions": [
{ "id":"companion", "width":"300", "height":"250" }
]
},
"servers": [
{
"type": "OpenX",
"apiAddress": "",
}
],
"notice": { "textStyle": "smalltext" },
"schedule": [
{
"zone": "6",
"position": "pre-roll",
"loadOnDemand": true
},
{
"zone": "33",
"position": "bottom",
"width": 450,
"height": 50,
"startTime": "00:00:05",
"duration": "15",
"loadOnDemand": true
}
]
},
"debug": {
"levels": ""
}
}
}
});