Example 4 - Hiding the Controlbar during Ad playback

This example illustrates how to completely hide the controlbar during ad playback. This only works when the controlbar is set to "autoHide: never". The dimensions of the stage are reset in the config so that the ad notice is shown 3 pixels from the base of the screen. When the control bar is hidden, OVA considers it active just invisible - hence why 'stagePaddingBottomWithControls' is used to set the positioning of the ad notice in a hidden state.


The configuration for this example is:


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

        ova: {
            url: "",

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

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

            "overlays": {
                "stagePaddingBottomWithControls": 3
            },

            "ads": {
                "controls": {
                    "visible": false
                },
                "servers": [
                    {
                       "type": "OpenX",
                       "apiAddress": "",
                    }
                ],
                "schedule": [
                    {
                       "zone": "5",
                       "position": "pre-roll"
                    }
                ]
            }
        }
    }
});