This example illustrates how to selectively apply ad slots to a series of show streams. In this example we have 6 show streams each playing for 10 seconds - a pre-roll ad is applied to the first, third and 6th shows. The zone used to fill the ad slots has a single ad in it so we've set the allowAdRepetition flag to ensure that the same ad can be repeated across the 3 ad slots to be filled.
The configuration for this example is:
flowplayer("a.example", "", {
plugins: {
rtmp: {
url: ""
},
rtmpInstream: {
url: ""
},
controls: {
autoHide: "always"
},
ova: {
url: "",
"shows": {
"baseURL": "",
"streams": [
{ "file":"", "duration":"00:00:10" },
{ "file":"", "duration":"00:00:11" },
{ "file":"", "duration":"00:00:12" },
{ "file":"", "duration":"00:00:13" },
{ "file":"", "duration":"00:00:14" },
{ "file":"", "duration":"00:00:15" }
]
},
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": "",
"allowAdRepetition": true
}
],
"schedule": [
{
"zone": "19",
"position": "pre-roll",
"applyToParts": [0, 2, 5]
}
]
},
"debug": {
"levels": ""
}
}
}
});