Example 1.04.04 - VPAID Non-Linear Impression, Click and Events

Loading the player ...

The configuration for this example is:


<script type="text/javascript">

function onImpressionEvent(event, forced) {
    if(forced) {
       debug("OVA CALLBACK: Forced impression fired");
    }
    else debug("OVA CALLBACK: Impression fired");
	debug(event);
}

function onTrackingEvent(event) {
	debug("OVA CALLBACK: Tracking event fired");
	debug(event);
}

function onClickTrackingEvent(event) {
	debug("OVA CALLBACK: Click tracking event fired");
	debug(event);
}

function onCustomClickTrackingEvent(event) {
	debug("OVA CALLBACK: Custom click tracking event fired");
	debug(event);
}

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

       width: 650,
       height: 240,

       controlbar: "bottom",

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

       plugins: {
           "../../../dist/swf/ova-jw.swf": { 
               "canFireEventAPICalls": true,
               "ads": {
                   "companions": {
                       "regions": [
                           { "id":"companion", "width":"300", "height":"250" }
                       ]
                   },
                   "notice": { "textStyle": "smalltext" },
                   "schedule": [
                       {
                           "position": "auto:bottom",
                           "startTime": "00:00:05",
                           "duration": 15,
                           "tag": "http://openx.openvideoads.org/openx/www/delivery/fc.php?
                                   script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&
                                   zones=overlay:0.0-0%3D28%7Coverlay:1.0-0%3D41&nz=1&source=&
                                   r=R0.15191890951246023&block=1&format=vast&charset=UTF-8"
                       }
                   ]
               }
           }
       }
});
</script>