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

Forums

/

Nonlinear ad is not displayed

2 replies [Last post]

Hi,
Tell me please, why not see ad.

var config:Config = new Config(jsonParser.parse(xml.ovajson));

vastController = new VASTController();
vastController.startStreamSafetyMargin = 500;
vastController.endStreamSafetyMargin = 300;
vastController.initialise(config, false);

var displayProps:DisplayProperties = new DisplayProperties(this, 300, 200, 0, 300, 200);
vastController.enableNonLinearAdDisplay(displayProps);

vastController.load();

Hi ... now that's going to be a tough question to answer with this amount of info.. ;)

Any chance you could give me a link with your player running and the debug turned on so I can see what OVA is reporting? Will help me determine where it is breaking...

Paul

Hi Paul. Thank you for your response.
I created a new project to try to OVA in action.
That's all the code that I created:

public class DocClass extends MovieClip{

   private var configLdr:URLLoader;
   private var jsonParser:JSON;
   private var vastController:VASTController;

   public function DocClass() {
      jsonParser = new JSON();

      configLdr = new URLLoader();
      configLdr.addEventListener(Event.COMPLETE, onLOAD);
      configLdr.load(new URLRequest('ova11.xml'));
   }

   private function onLOAD(e:Event):void {
      var xml:XML = XML(configLdr.data);
      var config:Config = new Config(jsonParser.parse(xml.ovajson));

      var displayProps:DisplayProperties = new DisplayProperties(this, stage.stageWidth, stage.stageHeight, 10, 300, 200);

      vastController = new VASTController();
      vastController.startStreamSafetyMargin = 500;
      vastController.endStreamSafetyMargin = 300;
      vastController.initialise(config, true);
      vastController.enableNonLinearAdDisplay(displayProps);

      vastController.load();
   }
}

configuration is the same as in Example:

longtailvideo.com/support/open-video-ads/ova-for-jw-player-5/13779/illustrating-overlay-alignments

When I test the application, my Fiddler2 shows that I sent a request and received the answer is correct xml.

What next to do in order to display nonlinear ads?