Example 2.07.00 - Using "jwplayer().load(playlist)", clip-by-clip loading, "clearPlaylist":false

Loading the player ...

The configuration for this example is:


<script type="text/javascript">
jwplayer("container").setup({
       flashplayer: "", 

       width: 450,
       height: 300,

       'playlistfile': 'http://content.bitsontherun.com/jwp/482jsTAr.xml',

       controlbar: "bottom",

       plugins: {
           "../../../dist/swf/ova-jw.swf": { 
               "clearPlaylist": false,
               "supportExternalPlaylistLoading": true,
               "autoPlayOnExternalLoad": true,
             
               "ads": {
                   "enforceLinearAdsOnPlaylistSelection": true,
                   "servers": [
                       {
                           "type": "OpenX",
                           "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                       }
                   ],
                   "notice": { "textStyle": "smalltext" },
                   "schedule": [
                       {
                           "zone": "18",
                           "position": "pre-roll"
                       }
                   ]
               },

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

function loadClip(clipIndex) {
   var clips = [
       [
          { 
              file: "http://streaming.openvideoads.org/shows/bbb-640x360.mp4",
              duration: 10 
          },
          { 
              file: "http://streaming.openvideoads.org/shows/sintel-1024-stereo.mp4",
              duration: 11 
          }
       ],
       [
          { 
              file: "http://streaming.openvideoads.org/shows/sintel-1024-stereo.mp4",
              duration: 11 
          },
          { 
              file: "http://streaming.openvideoads.org/shows/the-black-hole.mp4",
              duration: 12 
          }
       ],
       [
          { 
              file: "http://streaming.openvideoads.org/shows/the-black-hole.mp4",
              duration: 12 
          },
          { 
              file: "http://streaming.openvideoads.org/shows/bbb-640x360.mp4",
              duration: 10 
          }
       ]
   ];

   jwplayer("container").load(clips[clipIndex]);
}
</script>

<ul>
  <li><a href="#" onclick="loadClip(0);">
    Load the "Big Buck Bunny" trailer
  </a></li>
  <li><a href="#" onclick="loadClip(1);">
    Load the "Sintel" trailer
  </a></li>
  <li><a href="#" onclick="loadClip(2);">
    Load the "Black Hole" short film
  </a></li>
</ul>