Example 11 - Auto-sorting a badly ordered ad schedule

Loading the player ...

The configuration for this example is:


<script type="text/javascript">jwplayer("container").setup({
       flashplayer: OVA_PLAYER_2, 
       playlist: [
           { file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4", duration: 60 }
       ],
       plugins: {
           "../../../dist/swf/ova-jw.swf": { 
               "ads": {
                  "schedule": [
                      {
                         "position": "post-roll",
                         "tag": "http://u-ads.adap.tv/a/h/fy8HuCqcy0y5CmMetFZUPVRg8BYfUdag9T3gJOflx7IRS2LqU9Qh0Q==
                                 ?cb=15783059__amp__spot=preroll__amp__eov=eov__amp__artEid=vast_2_0__amp__ocb=9035
                                 __amp__rid=test__amp__pageUrl=http%3A%2F%2Fwww.adap.tv__amp__gubed"
                      },
                      {
                         "zone": "30",
                         "position": "auto:bottom",
                         "startTime": "00:00:05",
                         "duration": 5,
                         "repeat": 3,
                         "interval": 10,
                         "server": {
                             "type": "OpenX",
                             "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
                             "allowAdRepetition": true
                         }
                      },
                      {
                         "position": "pre-roll",
                         "tag": "http://openx.openvideoads.org/openx/www/delivery/fc.php?
                                 script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&
                                 zones=pre-roll0-0%3D5&nz=1&source=&r=R0.8062691302038729&
                                 block=1&format=vast&charset=UTF-8"
                      },
                      {
                         "position": "mid-roll",
                         "startTime": "00:00:12",
                         "tag": "http://ad.de.doubleclick.net/ad/testadvertiser.smartclip/vast1;sz=400x320;dcmt=text/xml;ord=__random-number__?"
                      }
                  ]
               },
               "debug": { "levels": "fatal, config, vast_template, playlist" }
           }
       },
       height: 300,
       width: 450
});
</script>