In this example the pre and post-roll ads are played only once. Once played, it is marked as "played" in the playlist so a replay of the stream does not result in the ad being replayed. Unfortunately mid-rolls cannot be marked as "playOnce" at this time.
The configuration for this example is:
flowplayer("a.example", "", {
plugins: {
controls: {
autoHide: "always"
},
ova: {
url: "",
"shows": {
"baseURL": "",
"streams": [
{ "file":"", "duration":"00:00:20" }
]
},
"ads": {
"playOnce": true,
"servers": [
{
"type": "OpenX",
"apiAddress": "",
"allowAdRepetition": true
}
],
"schedule": [
{
"zone": "5",
"position": "pre-roll"
},
{
"zone": "5",
"position": "mid-roll",
"startTime": "00:00:10"
},
{
"zone": "5",
"position": "post-roll"
}
],
},
"debug": {
"levels": ""
}
}
}
});