Example 4 - Selective application of ad slots

This example illustrates how to selectively apply ad slots to a series of show streams. In this example we have 6 show streams each playing for 10 seconds - a pre-roll ad is applied to the first, third and 6th shows. The zone used to fill the ad slots has a single ad in it so we've set the allowAdRepetition flag to ensure that the same ad can be repeated across the 3 ad slots to be filled.

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 4 - Selective application of ad slots
   </ova.title>
   <ova.json>
       {
            "shows": {
                "baseURL": "http://streaming.openvideoads.org/shows",
                "streams": [
                    { "file":"the-black-hole.mp4", "duration":"00:00:10" },
                    { "file":"the-black-hole.mp4", "duration":"00:00:11" },
                    { "file":"the-black-hole.mp4", "duration":"00:00:12" },
                    { "file":"the-black-hole.mp4", "duration":"00:00:13" },
                    { "file":"the-black-hole.mp4", "duration":"00:00:14" },
                    { "file":"the-black-hole.mp4", "duration":"00:00:15" }
               ]
            },

            "ads": {
              "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
                      "allowAdRepetition": true
                   }
              ],
              "schedule": [
                  {
                    "zone": "19",
                    "position": "pre-roll",
                    "applyToParts": [0, 2, 5]
                  }
              ]
            },

            "debug": {
              "debugger": "firebug",
              "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
            }
       }
   </ova.json>
</config>