OVA for JWPlayer

Hello

I am trying to use this DEMO script to run the trial version of OVA (Open Video Ads: Download | LongTail Video | Home of the JW Player)


<embed
  id="ply"
  data="http://player.longtailvideo.com/player5.2.swf"
  src="http://player.longtailvideo.com/player5.2.swf"
  width="450"
  height="300"
  allowscriptaccess="always"
  allowfullscreen="true"
  flashvars="plugins=ova-trial&config=http://www.longtailvideo.com/files/ova/jw-trial-config.xml"
/>

It works fine but I was wondering how do I use OVA for my Javascript based JW Player. I am using the following code, the video player works fine and plays the video but it does NOT show any ads. Can someone guide me pls?


<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>

<div id='mediaplayer'></div>

<script type="text/javascript">
  jwplayer('mediaplayer').setup({
    'flashplayer': 'player.swf',
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'file': '/videos/bunny.mp4',
    'image': '/thumbs/bunny.jpg',
    'dock': 'true',
    'plugins': {
       'ova-trial': {
           'config': 'http://www.longtailvideo.com/files/ova/jw-trial-config.xml'
       }
    }
  });
</script>

Many Thanks

I was thrown by this at first too. If you take a look at the config file, they are just extending on the XML that can be used to config the entire player. So just move the ‘config’ attribute out to the main list. If you are already using an XML to config your player just take out the <json.XXX> items and add it to your existing file.


<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>

<div id='mediaplayer'></div>

<script type="text/javascript">
  jwplayer('mediaplayer').setup({
    'flashplayer': 'player.swf',
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'file': '/videos/bunny.mp4',
    'image': '/thumbs/bunny.jpg',
    'dock': 'true',
    'config': 'http://www.longtailvideo.com/files/ova/jw-trial-config.xml',
    'plugins': {
       'ova-trial': true
    }
  });
</script>