Example 4 - User Defined Regions

This example illustrates how user defined regions can be specified by resource type. In this case a text overlay is centered in the bottom of the screen using the reserved region "reserved-bottom-center-w450px-h50px-transparent". As this region has no styling set for a text overlay the default standard styles are used.

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": "29",
                        "startTime": "00:00:05",
                        "duration": "15",
                        "regions": {
                            "text": "reserved-bottom-center-w450px-h50px-transparent"
                        }
                    }
                ],
            },

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