The configuration for this example is:
function onAdSchedulingStarted() {
debug("OVA CALLBACK: Ad scheduling started");
}
function onLinearAdScheduled(ad) {
debug("OVA CALLBACK: Linear ad scheduled - type is '" + ad.type + "'");
debug(ad);
++linearAdCount;
}
...
flowplayer("a.example", "", {
playlist: [
{
url: "",
duration: 30
}
],
plugins: {
controls: {
autoHide: "always"
},
ova: {
url: "",
"canFireAPICalls": true,
"ads": {
"companions": {
"regions": [
{ "id":"companion", "width":"150", "height":"360" }
]
},
"servers": [
{
"type": "OpenX",
"apiAddress": "",
}
],
"notice": { "textStyle": "smalltext" },
"schedule": [
{
"zone": "6",
"position": "pre-roll"
},
{
"zone": "33",
"position": "bottom",
"width": 450,
"height": 50,
"startTime": "00:00:05",
"duration": "15"
}
]
},
"debug": {
"levels": ""
}
}
}
});