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

Forums

/

OVA not working with smil files if using swfobject?

3 replies [Last post]

Hello,

i have a strange problem with longtail ova and all versions of jw player i tried with (5.0 to 5.4). If i use a highwinds smil file it will not work instead the player always displays:

Error #2048

This is the code i use:

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

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('54.swf','mpl','470','290','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://hwcdn.net/s7u9u4s6/fls/814354-flyersaamiga.smil');
so.addVariable('provider','rtmp');
so.addVariable('type','highwinds');
so.addVariable('rtmp.loadbalance','true');
so.addVariable('plugins','ova');
so.addVariable('config','/ova_own_scs.xml');
so.addVariable('stretching','exactfit');
so.write('mediaspace');
</script>

My ova xml configuration is this:

http://nopaste.info/66282bff1c.html

If i use a normal rtmp url or video files it works normal and i get the ad displayed but i do not get it to work with highwinds or smil files. I also tried the smil file from the ova documentation which is also hosted on highwinds, but no success.

I need to build my player infos with swfobject :/

hmm figured out it seems to be something with my config file, the one from the smil example on this page works :/ but i cant figure out whats wrong

Hi Enrico,

A couple of things are going on here..

1. For some reason, I can't actually get your SMIL file to play at all, even without OVA - are you able to just get your SMIL file playing properly in a JW config without OVA?

My SMIL file seems ok if you'd like to compare with that:

http://hwcdn.net/y9t7g4w7/fms/streaming/Passion.mp4.smil

2. That aside, there is a second issue. The SMIL setup seems to be conflicting with OVA when RTMP ads are served. I see a "security violation" occurring. I'm not sure at the moment why that is. That's going to take some investigation. One setup that does work however is serving HTTP ad streams with a SMIL show file.

For example, I know this setup works:

var so = new SWFObject('http://localhost/ova/ova.jwplayer.5x/dist/swf/5.4.swf','mpl','470','290','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://hwcdn.net/y9t7g4w7/fms/streaming/Passion.mp4.smil');
so.addVariable('provider','rtmp');
so.addVariable('plugins', 'http://localhost/ova/ova.jwplayer.5x/dist/swf/ova.swf');
so.addVariable('type','highwinds');
so.addVariable('rtmp.loadbalance','true');
so.addVariable('config','config.xml');
so.addVariable('stretching','exactfit');
so.write('mediaspace');

with this config file:

{
        "playOnce": true,
        "autoPlay": true,
        "blockUntilOriginalPlaylistLoaded": true,
        "debug": {
            "debugger": "firebug",
            "levels": "debug, fatal, config, vast_template"
        },
        "ads": {
          "pauseOnClickThrough": false,
          "disableControls": true,
          "servers": [
            {
               "type": "OpenX",
               "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
            }
          ],
          "schedule": [
            {
              "zone": "5",
              "position": "pre-roll"
            }
          ]
        }
}

The config above serves a HTTP stream. Perhaps the best place to start is to get your SMIL file working with a HTTP stream (use the OVA OpenX URL if that helps get you going).

Meanwhile, OVA struggles with RTMP ads in general. They do work, but combinations like this seem to cause issues.

I'm investigating the RTMP issues in general at the moment so I'll try to get a handle on what's happening with the security violation your SMIL/RTMP Ad setup generates.

Do you need to serve RTMP ads or can you just serve them as HTTP streams?

Paul

Hi, just a bit more. I've logged a bug report to track this issue:

http://developer.longtailvideo.com/ova/ticket/281

You can follow progress resolving the RTMP conflict via that ticket. I'll update the forum once I've worked out why the security violation occurs.

I think to see the ticket you'll need to register on the OVA developer site (if you haven't already) (http://developer.longtailvideo.com/ova)

Paul