This example illustrates the delivery of ads over a bitrate switched stream running on Bits on the Run. In this instance, pre-roll, post-roll and overlay ads are served.
The configuration for this example is:
<embed
id="ply"
data=""
src=""
width="450"
height="300"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="plugins=&
config=&
playlist=none&
repeat=list&
autostart=false&
dock=true&
frontcolor=000000&
title=Big%20Buck%20Bunny%20Trailer&
image=http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg&
stretching=uniform&
ping.script=http://content.bitsontherun.com/pings/&
lightcolor=000000&
controlbar=over&
displayclick=play&
backcolor=ffffff&
file=http://content.bitsontherun.com/jwp/nPripu9l.xml&
playlistsize=200"
/>
"" is defined as:
<config>
<ova.title>
Scheduling ads against a single stream
</ova.title>
<ova.json>
{
"blockUntilOriginalPlaylistLoaded": true,
"autoPlay": false,
"regions": {
"declarations": [
{
"id": "bottom",
"verticalAlign": "bottom",
"horizontalAlign": "center",
"backgroundColor": "#000000",
"padding": "-10 -10 -10 -10",
"width": 450,
"height": 50
}
]
},
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
}
],
"notice": {
"textStyle": "smalltext",
"type": "countdown"
},
"schedule": [
{
"zone": "18",
"position": "pre-roll"
},
{
"zone": "30",
"position": "bottom",
"width": 450,
"height": 50,
"startTime": "00:00:05",
"duration": "15"
},
{
"zone": "18",
"position": "pre-roll"
}
]
},
"debug": {
"debugger": "firebug",
"levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
}
}
</ova.json>
</config>