Example 2 - Play ads only once

In this example the pre-roll, mid and post roll ads are played only once. Once played, it is marked as "played" in the playlist so a replay of the stream does not result in the ad being replayed.

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 2 - Play ads only once
   </ova.title>
   <ova.json>
       {
            "ads": {
              "playOnce": true,
              "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": "OVA_OPENX_API",
                      "allowAdRepetition": true
                    }
              ],

              "schedule": [
                   {
                      "zone": "5",
                      "position": "pre-roll"
                   },
                   {
                      "zone": "5",
                      "position": "mid-roll",
                      "startTime": "00:00:10"
                   },
                   {
                      "zone": "5",
                      "position": "post-roll"
                   }
              ]
            },

            "debug": {
              "debugger": "firebug",
              "levels": "OVA_DEBUG"
            }
       }
   </ova.json>
</config>