Example 4 - Defining new Ad Templates per ad slot, per display mode

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

The configuration for this example is:


<script type="text/javascript">jwplayer("container").setup({
       flashplayer: "", 
       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
       image: "http://static.openvideoads.org/shows/the-black-hole-thumbnail.png",
       duration: 40,
       'controlbar.position': 'bottom',
       plugins: {
           "../../../../dist/swf/ova-jw.swf": { 
              "debug": {
                  "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
              },

              "ads": {
                 "servers": [
                     {
                        "type": "OpenX",
                        "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
                        "allowAdRepetition": true
                     }
                 ],
                 "companions": {
                     "regions": [
                        { "id":"companion", "width":"150", "height":"360" }
                     ]
                 },
                 "schedule": [
                    {
                        "zone": "31",
                        "startTime": "00:00:05",
                        "duration": 10,
                        "alwaysMatch": true,
                        "templates": {
                            "flash": {
                                "html": "MY NEW TEMPLATE: _code_"
                            }
                        }
                    }
                 ]
              }
           }
       },
       height: 360,
       width: 540
});
</script>