Example 21 - Serving multiple ad slots with a single static ad tag

Loading the player ...

The configuration for this example is:


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

       "controlbar.position": "bottom",

       width: 450,
       height: 300,

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

       plugins: {
           "../../../dist/swf/ova-jw.swf": { 
               "ads": {
                  "servers": [
                      {
                        "type": "direct",
                        "tag": "http://openx.openvideoads.org/openx/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml__amp__zones=pre-roll:0.0-0%3D5%7Cmid-roll:1.0-0%3D6%7Cpost-roll:2.0-0%3D5__amp__nz=1__amp__source=__amp__r=R0.08548080641776323__amp__block=1__amp__format=vast__amp__charset=UTF-8",
                        "oneAdPerRequest": false
                      }
                  ],
                  "schedule": [
                      {
                        "position": "pre-roll",
                        "applyToParts": [0]
                      },
                      {
                        "position": "post-roll",
                        "applyToParts": [1]
                      }                    
                  ]
               },

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