Example 18 - Configuring OVA with Javascript Embed Code (JW 5.5 or less)

This example illustrates how to use configure OVA with the 5.4 Javascript embed code. At present, the JW javascript embedder does not allow nested objects, arrays etc. to be declared. As such, the only way to pass in a complex OVA configuration structure is via the "ova.json" variable that takes the configuration as a single line escaped string.

Loading the player ...

The configuration for this example is:


<script type="text/javascript">jwplayer("container").setup({
       flashplayer: OVA_PLAYER_55_3, 
       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
       plugins: {
           "../../../../dist/swf/ova-jw.swf": { 
               json: "{ \"debug\": { \"debugger\": \"firebug\", \"levels\": \"fatal, config, vast_template\" }, 
                        \"ads\": { \"pauseOnClickThrough\": true, \"servers\": [ { \"type\": 
                        \"OpenX\", \"apiAddress\": \"http://openx.openvideoads.org/openx/www/delivery/fc.php\" } ], 
                        \"schedule\": [ { \"zone\": \"5\", \"position\": 
                        \"pre-roll\" } ] } } }" } 
       },
       height: 300,
       width: 450
});
</script>