Example 1.01.03 - Ad Scheduling callback events (Multiple Pre-Rolls)

Loading the player ...

The configuration for this example is:


<script type="text/javascript">

function onAdSchedulingStarted() {
	debug("OVA CALLBACK: Ad scheduling started");
}

....

function onAdSchedulingComplete(ads) {
	debug("OVA CALLBACK: Ad scheduling complete - " + ads.length + " ads scheduled");
	debug(ads);
}

jwplayer("container").setup({
       flashplayer: "", 

       width: 650,
       height: 240,

       controlbar: "bottom",

       playlist:[
           { 
               file: "http://streaming.openvideoads.org/shows/bbb-640x360.mp4",
               duration: 10
           }
       ],

       plugins: {
           "../../../dist/swf/ova-jw.swf": { 
               "ads": {
                   "companions": {
                       "regions": [
                           { "id":"companion", "width":"300", "height":"250" }
                       ]
                   },
                   "schedule": [
                       {
                           "position": "pre-roll",
                           "tag": "http://www.adotube.com/kernel/vast/vast.php?
                                   omlSource=http://www.adotube.com/php/services/player/OMLService.php?
                                   avpid=UDKjuff&ad_type=pre-rolls&platform_version=vast20as3&vpaid=1&
                                   rtb=0&publisher=adotube.com&title=[VIDEO_TITLE]&tags=[VIDEO_TAGS]&
                                   description=[VIDEO_DESCRIPTION]&videoURL=[VIDEO_FILE_URL]"
                       },
                       {
                           "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.8349904902279377&block=1&
                                   format=vast&charset=UTF-8"
                       }
                   ]
               },

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