Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

jwplayer javascript API with OVA plugin

13 replies [Last post]
Reply

I setup my video like this:

<div id="container">Loading...</div>
<script type="text/javascript">
jwplayer('container').setup({
'width': 700,
'height': 400,
'file': 'VIDEOLINK',
    'plugins': {
       'ova-trial': true
    },
   'config' : 'jwplayer/config.xml',
    'modes': [
        {type: 'html5'},
        {type: 'flash', src: 'jwplayer/player.swf'},
        {type: 'download'}
    ]
});
</script>

It took me a long time to find out how to use ova-trial. Now I have a licensed version of the OVA plugin and I just don't see how to use it. Are there files I have to upload for it to work? How do I call it?

Another question: is there a way to config without an external config.xml file? Can I do this inline and if so - how?

Thanks in advance!

Reply

Do you have a link to where this is not working?

Reply

The problem is not that it isn't working - my problem is that I don't even know how to do it.

- use the licensed version of the OVA plugin
- use inline xml config

How do I do it?

Reply

I am not sure what you are asking then?

Reply

Okay, why doesn't this work:

jwplayer('container').setup({
'width': 700,
'height': 400,
'file': '<?php echo $video; ?>',
    'plugins': {
       'ova': ''
    },
   'ova.json' : {
"ads": {
"servers": [{
"type": "OpenX",
"apiAddress": "vast.txt"
}],
"notice": { "textStyle": "smalltext" },
"displayCompanions": true,
"companions": [{
"id":"companion",
"width":"200",
"height":"240"
}],
"schedule": [{
"zone": "47",
"position": "pre-roll",
"server": {
"type": "direct",
"tag": "http://domain.de/vid?<? echo rand(100,999); ?>"
}
},
{
"zone": "48",
"position": "auto:bottom",
"width": 320,
"height": 80,
"startTime": "00:00:02",
"duration": "5"
}]
}
   },
    'modes': [
        {type: 'html5'},
        {type: 'flash', src: 'jwplayer/player.swf'},
        {type: 'download'}
    ]
});

This doesn't play my preroll ad. Is my plugin call correct? 'ova' : '' ?

Reply

Can I see a link to where this is running?

Reply
Reply

I don't think your ad tag is a valid video ad.

When I go to - http://austria1.adverserve.net/RealMedia/ads/adstream_sx.ads/ip-oesterreich/AUSTRIA9/1[1112884768]@Video1 in the browser, I don't really see anything...

Reply

Well is my configuration correct?

'ova.json' : '...'

and

'plugins': {
   'ova': ''
}

Just tell me ... is this CORRECT syntax or not?

Reply

Yes, that is correct.

Reply

But it works here:

http://goo.gl/nUUGX

With the same video ad url. so something's wrong with my code.

I HAVE to use the javascript API. Please help me make it work with javascript.

Reply

This is different though.

Why not just use - config: 'http://www.austria9.at/wp-content/themes/austria9/jwplayer/config.xml', in your JW Embedder code?

Reply

Because I need a random number in my video link. Like this:

.../1[RANDOMNUMBER]@Video1...

Thats why I can't use a config.xml.

Reply

Got it.

I am not 100% sure here, but if you ask in the OVA forums, the developer should be able to help you - http://www.longtailvideo.com/support/forums/open-video-ads/ova-for-jw-player/

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options