Example 10 - Delivering Image Overlay Ads

This example delivers an image overlay at the bottom of the player screen 5 seconds into the stream for a duration of 10 seconds. A second 'click to play' video overlay follows 5 seconds later. This example uses the reserved region "reserved-bottom-w450px-h50px-transparent".

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:35" 
                    } 
                ]
            },

            "ads": {
                "pauseOnClickThrough": false,
                "servers": [
                     {
                        "type": "OpenX",
                        "apiAddress": ""
                    }
                ],
                "companions": {
                   "regions": [
                      { "id":"companion", "width":"150", "height":"360" }
                   ]
                },
                "schedule": [
                    {
                        "zone": "28",
                        "width": 450,
                        "height": 50,
                        "startTime": "00:00:05",
                        "duration": "10"
                    },
                    {
                        "zone": "41",
                        "width": 450,
                        "height": 50,
                        "startTime": "00:00:20",
                        "duration": "10"
                    }
                ],
            },

            "debug": {
                "levels": ""
            }
        }
    }
});