Example 5 (HTTP) - 1 stream with a pre, mid and post-roll

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.

A COMPANION ADVERTISEMENT WILL APPEAR IN HERE

The configuration for this example is:


flowplayer("a.example", "../dist/flowplayer-3.1.5.swf", {
   plugins: {
        controls: {
            autoHide: "always"
        },

        openAdStreamer: {
            url: '../dist/OpenAdStreamer.swf',

            "shows": {
                "baseURL": "http://streaming.openvideoads.org/shows",
                "streams": [
                    { "file":"the-black-hole.mp4", "duration":"00:01:00" }
                ]
            },

            "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": "5",
                        "position": "pre-roll",
                        "playOnce": true
                    },
                    {
                        "zone": "6",
                        "position": "mid-roll",
                        "startTime": "00:00:10",
                        "playOnce": true
                    },
                    {
                        "zone": "5",
                        "position": "post-roll",
                        "playOnce": true
                    }
                ]
            },

            "debug": {
                "levels": "fatal",
                "debugger": "firebug"
            }
        }
    }
});