Example 2 - Mixed Overlay Delivery

This example illustrates how to deliver a mixture of overlay types. 3 random overlays will be selected and delivered - each running for 5 seconds. Leaving out width and height dimensions on an Ad Slot definition defaults it to -1 and -1 which means that any non-linear sizing will be matched.

A COMPANION ADVERTISEMENT WILL APPEAR IN HERE

The configuration for this example is:


flowplayer("a.example", "", {
    plugins: {
        rtmp: {
            url: ""
        },
        rtmpInstream: {
            url: ""
        },
        controls: {
            autoHide: "always"
        },

        ova: {
            "url": "",

            "shows": {
                "streams": [ 
                   { 
                       "file": "", 
                       "duration":"00:00:30" 
                   } 
                ]
            },

            "ads": {
                "servers": [
                    {
                        "type": "OpenX",
                        "apiAddress": ""
                    }
                ],
                "companions": [
                    { "id":"companion", "width":"150", "height":"360" }
                ],
                "schedule": [
                    {
                        "zone": "44",
                        "startTime": "00:00:05",
                        "duration": "5"
                    },
                    {
                        "zone": "44",
                        "startTime": "00:00:12",
                        "duration": "5",
                    },
                    {
                        "zone": "44",
                        "startTime": "00:00:19",
                        "duration": "5"
                    }
                ],
            },

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