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

Forums

/

Close XML loading

15 replies [Last post]
Reply

Hi there,

We're working with OVA & our custom player. It's working very fine.

Actually, we have a short problem. Our custom player is loaded inside an other SWF. Sometimes, the SWF parent need to unload the player.

When using unload / unloadAndStop on an SWF, a best practice consist to listen Event.UNLOAD in the loaded SWF to close any stream.

So, my problem is, that I can't acces to the "XML Stream" that OVA create to get AdServer datas.
Do you know what I mean ? Do you have any clue to close properly any OVA stream ?

Regards,
Thomas.

Reply

Hi Thomas,

When you say "stream" - do you mean the org.openvideoads.vast.server.Stream class or do you mean the actual clip stream that your player plays?

Paul

Reply

Hi Paul,
I mean the URLLoader that load XML datas from AdServer. Do you see ?

Reply

Oh, perhaps there is a bug then in the framework - isn't that being closed down correctly by the framework?

It should be - if it's not - I'll fix that since you shouldn't have to worry about it...

Does that sound right?

Paul.

Reply

So,
Inside OVA Framework, you will add an "loaderInfo.addEventListener (Event.UNLOAD, .. )" and close all opened streams ?

Reply

Hi,

Ah - no - I think it's best if add an API onto the VASTController to close() or something like that so that anything "in process" can be closed down immediately if you call it...

Paul

Reply

It could be great to.

The best approche is to add a close () function on VASTController. So it can be call anytime developer want.

When do you think it will be release ? Can I get this feature on SVN in few days ?

Regards,
Thomas.

Reply

Doing it right now... hopefully you'll have it in the next few hours after a bit of testing ;)

Paul

Reply

Hi Thomas,

I've added in the API and checked in the code.

The call is:

_vastController.unload();

It's in the following build:

OVA for JW 5.x - v0.5.0 RC3 (build 238)

When unload is called, all URLLoaders that may be active by the framework are forcibly closed along with any SWF resources that may be loaded.

Let me know how that goes...

Paul

Reply

Thanks Paul !
I'm using OVA for AS3, do you add this feature to OVA for AS3 ?

Reply

Oh, sorry, I cut and paste in the wrong product version - sorry on that - yes, it's OVA for AS3.. so it's in the following version:

OVA for AS3 v0.6.0 RC3 (build 191)

Paul

Reply

Thanks Paul !
Do I have to use SVN to download OVA for AS3 build 191 ?

Reply

Yeh, it's just checked into SVN at this stage - I haven't published a new release candidate package yet.. is that ok?

Paul

Reply

It's okay, I have checkout SVN.

I'm testing.

Reply

After testing the unload function on VASTController.
Problems are still here.

So I keep debugging our player & OVA.
To be sure, the VASTController.unload () function turn-off the AdSchedule & AdTracking.
Do you close the first VAST request ?

What I mean is, VASTController.initialise () do a VAST Request on our AdServer. Does the VASTController.unload () function closes this request ?

Regards,
Thomas.

Reply

Yes, it does a close on all URLLoaders... and the connections are closed anyway after they return...

So I'm a little confused. What makes you think that they are still open?

Paul

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