This example illustrates how to use the JW flashvar configuration to specify a show stream (with a duration and start time specified) and have an OAS ad served against it. In this example a pre-roll ad is served along with a "click to play video" overlay 5 seconds into the show stream. The show stream is started 15 seconds in and runs for 35 seconds.
The configuration for this example is:
"" is defined as:
<config>
<ova.title>
Scheduling ads against an inline single stream (with a stream duration and start time)
</ova.title>
<ova.json>
{
"autoPlay": false,
"overlays": {
"regions": [
{
"id": "bottom",
"verticalAlign": "bottom",
"horizontalAlign": "center",
"backgroundColor": "#000000",
"padding": "-10 -10 -10 -10",
"width": 450,
"height": 50
}
]
},
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": "OVA_OPENX_API"
}
],
"notice": { "textStyle": "smalltext" },
"schedule": [
{
"zone": "18",
"position": "pre-roll"
},
{
"zone": "33",
"position": "bottom",
"width": 450,
"height": 50,
"startTime": "00:00:05",
"duration": "15"
}
]
},
"debug": {
"levels": "OVA_DEBUG",
"debugger": "firebug"
}
}
</ova.json>
</config>