Example 8-1 - 'allowPlaylistControl:true' ad calls made "On Demand" during playback with "delayAdRequestUntilPlay:true" (VPAID)

Loading the player ...

The configuration for this example is:


<script type="text/javascript">jwplayer("container").setup({
       flashplayer: "", 
       
       'playlist': [
           {
              'file': 'http://streaming.openvideoads.org/shows/bbb-640x360.mp4',
              'title': 'Big Buck Bunny Trailer',
              'image': '../../../dist/images/bbb-thumb.jpg',
              'duration': '10',
              'description': 'An animated short film about a bunny'
           },
           {
              'file': 'http://streaming.openvideoads.org:81/shows/the-black-hole.mp4',
              'title': 'The Black Hole',
              'image': '../../../dist/images/the-black-hole-thumb.png',
              'duration': '11',
              'description': 'A short film about a black hole'
           }
       ],

       'playlist.position': 'right',
       'playlist.size': '250',
       'height': 240,
       'width': 635,

       'controlbar.position':'bottom',
       
       'plugins': {
           "../../../dist/swf/ova-jw.swf": { 
               "allowPlaylistControl": true,
               "delayAdRequestUntilPlay": true,

               "debug": { 
                   "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api" 
               },
               
               "ads": {
                   "enforceLinearAdsOnPlaylistSelection": true,
                   "schedule": [
                       {
                          "position": "pre-roll",
                          "loadOnDemand": true,
                          "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]"
                       }
                   ]
               }
           }
       }
});
</script>