Using OVA with SWFObject

This will be replaced by the SWF.

The configuration for this example is:


<script type="text/javascript">
   function buildOVAConfiguration() {
      var result = '{';
      result += '"debug":{';
      result += '"levels":"fatal, config, vast_template"';
      result += '},';
      result += '"ads":{';
      result += '"schedule":[';
      result += '{';
      result += '"position":"pre-roll",';
      result += '"tag":"http://openx.openvideoads.org/openx/..format=vast&charset=UTF-8"';
      result += '}';
      result += ']';
      result += '}';
      result += '}';
      return escape(result);
   }

   var flashvars = {
      'plugins':    	"",
      'file':           "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
      'ova.json':       buildOVAConfiguration()
   };

   var params = {
      'allowfullscreen':    'true',
      'allowscriptaccess':  'always',
      'bgcolor':            '#000000'
   };

   var attributes = {
      'id':                 'player1',
      'name':               'player1'
   };

   swfobject.embedSWF("", 'player', '480', '272', '9', 'false', flashvars, params, attributes);
</script>