Example 1 - Repeating Ad Positions

This example plays 3 pre-roll ads sequentially before the main stream. At this time, mid-roll repeating ad slots is not supported by Flowplayer.

The configuration for this example is:


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

        ova: {
            url: "",

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

            "ads": {
                "servers": [
                    {
                        "type": "OpenX",
                        "apiAddress": "",
                        "allowAdRepetition": true
                    }
                ],
                "schedule": [
                    {
                        "zone": "5",
                        "position": "pre-roll",
                        "repeat": 3
                    }
                ]
            },

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