Example 4 - Hiding the Controlbar during Ad Playback

This example illustrates how to hide the control bar during ad playback. For this to work, the ad notice is best placed at the top of the screen so that it is nicely positioned when the control bar is hidden.


The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 4 - Managing the Control Bar Disable States
   </ova.title>
   <ova.json>
       {
          "debug": {
              "debugger": "firebug",
              "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
          },

		  "overlays": {
               "regions": [
                  {
                      "id": "my-ad-notice",
                      "verticalAlign": "top",
                      "horizontalAlign": "right",
                      "backgroundColor": "transparent",
                      "width": "100pct",
                      "height": 40,
                      "style": ".smalltext { font-style: italic; font-size:10; }"
                  }
               ]
          },

          "ads": {
             "controls": {
                  "visible": false
             },
             "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                   }
             ],
             "schedule": [
                {
                   "zone": "5",
                   "position": "pre-roll",
                   "notice": {
                      "show": true,
                      "region": "my-ad-notice",
                      "message": "<p class=\"smalltext\" align=\"right\">Your programme resumes in _countdown_ seconds</p>"
                   }
                }
             ]
          }
       }
   </ova.json>
</config>