Example 6 - Enabling Ad Call Tracking

Loading the player ...

The configuration for this example is:


<script type="text/javascript">jwplayer("container").setup({
       flashplayer: "", 
       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4", 
       duration: 10,
       'controlbar.position':'bottom',
       plugins: {
           "../../../dist/swf/ova-jw.swf": {                
               "debug": { 
                   "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api" 
               },

               "analytics": {
                   "google": {
	                   "custom": {
                           "accountId": "UA-10158120-1",
                           "adCalls": {
                               "enable": true,
                               "fired": "/ova-example/ad-calls/fired",
                               "complete": "/ova-example/ad-calls/complete",
                               "failover": "/ova-example/ad-calls/failover",
                               "error": "/ova-example/ad-calls/error",
                               "timeout": "/ova-example/ad-calls/timeout",
                               "deferred": "/ova-example/ad-calls/deferred"
                           }
                       }
                   }
               },
               
               "ads": {
                   "servers": [
                       {
                          "type": "OpenX",
                          "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                       }
                   ],
                   "schedule": [
                       {
                          "zone": "5",
                          "position": "pre-roll"
                       }
                   ]
               }
           }
       },
       height: 300,
       width: 450
});
</script>