Example 5 - Test reposition of ad notice on hide of controls

In this example, a custom skin is used. The skin is 32 pixels high. In addition, a floating control bar is deployed via the "controlbar=over" option. This results in a player size of 300 which places the ad notice etc under the control bar when it's shown. To get around that, a bottom margin padding value is set for both the control bar on and off.

"assessControlBarState" does not have to be set - it is true by default. It's specified here for illustrative purposes only. If it's defined as false, the repositioning will be blocked when the control bar shows and hides - this improves performance of the plugin.

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 5 - Test reposition of ad notice on hide of controls
   </ova.title>
   <ova.json>
       {
            "assessControlBarState": true,

            "debug": {
                "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
            },

            "overlays": {
                 "stagePaddingBottomWithControls": 35,
                 "stagePaddingBottomNoControls": 2
            },

            "ads": {
                "pauseOnClickThrough": true,
                "servers": [
                    {
                      "type": "OpenX",
                      "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                    }
                ],
                "schedule": [
                    {
                      "zone": "5",
                      "position": "pre-roll"
                    },
                    {
                       "zone": "28",
                       "startTime": "00:00:03",
                       "position": "auto:bottom",
                       "duration": "recommended:10"
                    }
                ]
            }
       }
   </ova.json>
</config>