1 show stream limited to 20 seconds in duration with a pre-roll, mid roll (10 seconds into the show stream) and a post-roll ad. The mid-roll has a companion banner attached.
The configuration for this example is:
flowplayer("a.example", "../dist/flowplayer-3.1.5.swf", {
plugins: {
rtmp: {
url: "../dist/flowplayer.rtmp-3.1.3.swf"
},
rtmpInstream: {
url: "../dist/flowplayer.rtmp-3.1.3.swf"
},
controls: {
autoHide: "always"
},
openAdStreamer: {
url: '../dist/OpenAdStreamer.swf',
"shows": {
"baseURL": "rtmp://ne7c0nwbit.rtmphost.com/videoplayer",
"streams": [
{ "file":"mp4:the-black-hole.mp4", "duration":"00:00:20" }
]
},
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
}
],
"displayCompanions": true,
"companions": [
{ "id":"companion", "width":"150", "height":"360" }
],
"schedule": [
{
"zone": "1",
"position": "pre-roll",
"playOnce": true
},
{
"zone": "4",
"position": "mid-roll",
"startTime": "00:00:10",
"playOnce": true
},
{
"zone": "1",
"position": "post-roll",
"playOnce": true
}
]
},
"debug": {
"levels": "fatal",
"debugger": "firebug"
}
}
}
});