2 shows streams, sequenced to play one after each other, restricted to 15 secs each in duration, with a pre-roll ad before the first stream followed by a post-roll after each stream. Auto play is set to true so the stream starts up automatically and "playOnce" is set to true so ads will only play once for the streams.
The configuration for this example is:
"" is defined as:
<config>
<ova.title>
Example 4 (HTTP) - A pre-roll, 2 show streams with post-roll ads after each
</ova.title>
<ova.json>
{
"playOnce": true,
"autoPlay": true,
"shows": {
"baseURL": "http://streaming.openvideoads.org/shows",
"streams": [
{ "file":"the-black-hole.mp4", "duration":"00:00:15" },
{ "file":"the-black-hole.mp4", "duration":"00:00:15" }
]
},
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
}
],
"schedule": [
{
"zone": "5",
"position": "pre-roll",
"applyToParts": [ 0 ]
},
{
"zone": "5",
"position": "post-roll"
}
]
},
"debug": {
"levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
}
}
</ova.json>
</config>