Example 1 - Declaring custom Ad Templates for all ad slots and all ad display modes

This example illustrates how to override the standard non-linear ad templates.

A COMPANION ADVERTISEMENT WILL APPEAR IN HERE

The configuration for this example is:


flowplayer("a.example", "", {
    playlist: [
       {
           url: "",
           duration: 40
       }
    ],
    plugins: {
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

            "ads": {
                "servers": [
                    {
                        "type": "OpenX",
                        "apiAddress": ""
                    }
                ],
                "companions": {
                    "regions": [
                       { "id":"companion", "width":"150", "height":"360" }
                    ]
                },
                "overlays": {
                    "templates": {
                       "html": "<body>MY NEW TEMPLATE: _code_</body>"
                    }
                },
                "schedule": [
                    {
                        "zone": "31",
                        "startTime": "00:00:05",
                        "alwaysMatch": true,
                        "duration": 10
                    }
                ]
            },

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