Example 3 - Customising the "skip ad" button using Region settings


The configuration for this example is:


flowplayer("a.example", "", {
    plugins: {
        controls: {
            autoHide: "never"
        },

        ova: {
            url: "",

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

            "debug": {
                "levels": ""
            },

            "ads": {
                "skipAd": {
                    "enabled": true,
                    "html": "SKIP!",
                    "region": {
                        "id": "my-new-skip-ad-button",
                        "verticalAlign": "top",
                        "horizontalAlign": "left",
                        "backgroundColor": "#FF3300",
                        "opacity": 0.8,
                        "borderRadius": 15,
                        "padding": "-10 -10 -10 -10",
                        "width": 60,
                        "height": 20
                    }
                },
                "servers": [
                    {
                       "type": "OpenX",
                       "apiAddress": "",
                    }
                ],
                "schedule": [
                    {
                       "zone": "5",
                       "position": "pre-roll"
                    }
                ]
            }
        }
    }
});