Hi all
I want to test OVA on JWplayer 5.8 but have problem and cannot run. Can anyone help me? Tks!
Here is my player javascript code
<script type="text/javascript">
jwplayer("mediaplayer").setup({
provider: 'http',
file: encodeURI("http://abc.com/demo/test2.mp4"),
image: "http://abc.com/demo/test2.jpg",
flashplayer: "http://abc.com/player/jwplayer/player.swf",
width: 454,
height: 254,
skin: "http://abc.com/player/jwplayer/skin/glow.zip",
stretching: "uniform",
autostart: "true",
autopreloading: "true",
bufferlength: 10,
plugins: {
"ova":{
config: "http://abc.com/player/jwplayer/ads/ova01.xml"
},
modes: [
{ type: "html5",
config: {skin: http://abc.com/player/jwplayer/skin/glow/glow.xml"}
},
{ type: "flash", src: "http://abc.com/player/jwplayer/player.swf" }
]
});
</script>
Here is ova01.xml config(Copy from OVA example page)
<config>
<ova.title>
Example 1 (HTTP) - A pre-roll ad only
</ova.title>
<ova.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"
}
]
}
}
</ova.json>
</config>
Hi,
Ok, let's clean up the config first... is there any particular reason why you are using an external config file.. you are better doing this:
<script type="text/javascript">jwplayer("mediaplayer").setup({
...
plugins: {
"/path/to/your/ova/ova.swf": {
"ads" {
"schedule": [
....
]
}
}
}
});
That's the first thing.
The second thing is that you can't use the plugin name "ova" with JW 5.8 JW Embedder based setups yet. Doing so results in the plugin loading from the Longtail repository and the version that is on there does not work work with JW 5.8 Embedder this way.
You need to grab the OVA RC5 or RC6 (development) SWF from the OVA developer site and reference that locally on your setup. To get the SWF, go to http://developer.longtailvideo.com/ova - register on the site and then grab the SWF from the "Download the Latest" page.
Then, when you reference the SWF in your setup, go:
plugins:"/your/local/path/to/ova.swf": {
}
To load up the version that you've installed.
Paul