In this example the pre-roll, mid 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.
The configuration for this example is:
"" is defined as:
<config>
<ova.title>
Example 2 - Play ads only once
</ova.title>
<ova.json>
{
"ads": {
"playOnce": true,
"servers": [
{
"type": "OpenX",
"apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
"allowAdRepetition": true
}
],
"schedule": [
{
"zone": "5",
"position": "pre-roll"
},
{
"zone": "5",
"position": "mid-roll",
"startTime": "00:00:10"
},
{
"zone": "5",
"position": "post-roll"
}
]
},
"debug": {
"debugger": "firebug",
"levels": "fatal, config, vast_template, vpaid, playlist, api, analytics, http_calls"
}
}
</ova.json>
</config>