Example 4.04.00 - On demand overlays with companions

Loading the player ...
A COMPANION ADVERTISEMENT WILL APPEAR IN HERE

The configuration for this example is:


<script type="text/javascript">jwplayer("container").setup({
       flashplayer: "", 

       width: 540,
       height: 360,

       playlist: [
          { 
             file: "http://streaming.openvideoads.org/shows/the-black-hole.mp4",
             duration: 30 
          }
       ],

       'controlbar.position':'bottom',

       plugins: {
           "../../../dist/swf/ova-jw.swf": { 
               "ads": {
                   "companions": {
                      "regions": [
                          { "id":"companion", "width":"150", "height":"360" }
                      ]
                   },
                   "servers": [
                      {
                         "type": "OpenX",
                         "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                      }
                   ],
                   "schedule": [
                      {
                         "zone": "28",
                         "position": "auto:bottom",
                         "loadOnDemand": true,
                         "startTime": "00:00:03",
                         "duration": 10,
                         "width": 450,
                         "height": 50
                      }
                   ]
               },

               "debug": {
                  "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
               }
           }
       }
});
</script>