Example 9 - Enabling Linear Ad Progress 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",
                          "progress": {
                              "enable": true,
                              "start": "/ova-example/progress/start",
                              "firstQuartile": "/ova-example/progress/firstQuartile",
                              "midpoint": "/ova-example/progress/midpoint",
                              "thirdQuartile": "/ova-example/progress/thirdQuartile",
                              "complete": "/ova-example/progress/complete",
                              "pause": "/ova-example/progress/pause",
                              "resume": "/ova-example/progress/resume",
                              "fullscreen": "/ova-example/progress/fullscreen",
                              "mute": "/ova-example/progress/mute",
                              "unmute": "/ova-example/progress/unmute",
                              "expand": "/ova-example/progress/expand",
                              "collapse": "/ova-example/progress/collapse",
                              "acceptInvitation": "/ova-example/progress/acceptInvitation",
                              "close": "/ova-example/progress/close"
                          }
                      }
                   }
               },
               
               "ads": {
                   "servers": [
                       {
                          "type": "OpenX",
                          "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                       }
                   ],
                   "schedule": [
                       {
                          "zone": "5",
                          "position": "pre-roll",
                          "loadOnDemand": true
                       }
                   ]
               }
           }
       },
       height: 300,
       width: 450
});
</script>