1 Reply Latest reply on Dec 11, 2011 1:09 PM by TheRossman

    The Return of VPAID

    TheRossman Level 1

      Hey all,

       

      Was hoping someone could shed some light on the support of VPAID as it stands.  I have read what I think is every VPAID related thread in these forums, but still cannot get VPAID working.

       

      Background information:

      • Current setup: Flash Builder 4.5 / OSMF 1.6.x? (whatever is currently in trunk)
      • The Url's for the content video and the VPAID ad I got from the OSMF VPAID Sample itself (which by the way, doesn't work, which is what started me down this whole path)
      • I have tested the VPAID creative with google/doubleclicks test tool (http://code.google.com/apis/ima/docs/vastinspector.html) and the ad does seem to be valid and work correctly there.

       

       

       

      I am starting from the most basic of examples, and am seeing some really weird behaviour....here's my base code - I think we can all agree, real simple stuff:

       

      var player:MediaPlayerSprite = new MediaPlayerSprite();

      player.mediaContainer.layoutMetadata.width = 512;

      player.mediaContainer.layoutMetadata.height = 288;

      player.mediaContainer.layoutMetadata.scaleMode = ScaleMode.LETTERBOX;

       

      player.mediaPlayer.bufferTime = 8;

      addChild( player );

       

       

      Now I have a few use cases that I am trying (seperately of course):

       

      1) THIS WORKS, A STANDARD STREAMING VIDEO ELEMENT

      // LINEAR CONTENT

      videoElement = new VideoElement(new URLResource("rtmp://cp67126.edgefcs.net/ondemand/mediapm/strobe/content/test/SpaceAloneHD _sounas_640_500_short"));

      player.media = videoElement;

       

       

      2) THIS DOES NOT WORK, THE VPAID AD IS STARTED THEN IMMEDIATELY STOPPED.  If I edit the org.osmg.vpaid.elements.VPAIDElement.as class and remove _vpaid.stopVPAID(); from the onPlayStateChange() method, the ad will actually play but you can't see it.

      // create VPAID LINEAR

      vpaidPrerollLinear = new VPAIDElement(new URLResource("http://cdn1.eyewonder.com/200125/instream/_modules/loaders/Custom/VPAID_as3/loader.swf?adL oaderWidth=300&adLoaderHeight=225&cp=http://cdn.eyewonder.com/100125/754851/1242700/&loade rCreative=Linear_Holder_as3.swf%3Fcp%3Dhttp%3A//cdn.eyewonder.com/100125/754851/1242700/%2 6amp%3Bewbase%3Dhttp%3A//cdn.eyewonder.com/100125/754851/1242700/%26amp%3BadLoaderWidth%3D 300%26amp%3BadLoaderHeight%3D225%26amp%3BhAlign%3Dcenter%26amp%3BvAlign%3Dmiddle%26amp%3Bk eywordNames%3DenableFriendlyIframe%2Cinflow_iframe_div%26amp%3BkeywordIDs%3D%5B48%5D%2C%5B 52%5D%26amp%3Bewbust%3D%5Btimestamp%5D&adInstreamType=fixedroll&adTagAlignHorizontal=cente r&adTagAlignVertical=middle&adMode=prog&qaReportUUID=common"));

      player.media = vpaidPrerollLinear;

       

       

      3) THIS PLAYS THE CONTENT VIDEO AND THE VPAID AD SIMULTANEOUSLY/IN PARALLEL (weird for a serialelement, no?), BUT YOU CANNOT SEE THE VPAID AD, EVEN IF YOU ADD LAYOUT METADATA FOR Z-INDEX TO THE ELEMENTS.

      // SERIAL COMPOSITION

      serialElement = new SerialElement();

      serialElement.addChild(vpaidPrerollLinear);

      serialElement.addChild(videoElement);

       

      player.media = serialElement;

       

       

       

      4) THIS IS THE CRAZY RESULT - with the player being assigned ONLY the VPAID ad, it actually plays both the content video and the VPAID ad at the same time, but you can't see either of them....WTF?

      // LINEAR CONTENT

      videoElement = new VideoElement(new URLResource("rtmp://cp67126.edgefcs.net/ondemand/mediapm/strobe/content/test/SpaceAloneHD _sounas_640_500_short"));

       

      // create VPAID LINEAR

      vpaidPrerollLinear = new VPAIDElement(new URLResource("http://cdn1.eyewonder.com/200125/instream/_modules/loaders/Custom/VPAID_as3/loader.swf?adL oaderWidth=300&adLoaderHeight=225&cp=http://cdn.eyewonder.com/100125/754851/1242700/&loade rCreative=Linear_Holder_as3.swf%3Fcp%3Dhttp%3A//cdn.eyewonder.com/100125/754851/1242700/%2 6amp%3Bewbase%3Dhttp%3A//cdn.eyewonder.com/100125/754851/1242700/%26amp%3BadLoaderWidth%3D 300%26amp%3BadLoaderHeight%3D225%26amp%3BhAlign%3Dcenter%26amp%3BvAlign%3Dmiddle%26amp%3Bk eywordNames%3DenableFriendlyIframe%2Cinflow_iframe_div%26amp%3BkeywordIDs%3D%5B48%5D%2C%5B 52%5D%26amp%3Bewbust%3D%5Btimestamp%5D&adInstreamType=fixedroll&adTagAlignHorizontal=cente r&adTagAlignVertical=middle&adMode=prog&qaReportUUID=common"));

       

      // SERIAL COMPOSITION

      serialElement = new SerialElement();

      serialElement.addChild(vpaidPrerollLinear);

      serialElement.addChild(videoElement);

       

      player.media = vpaidPrerollLinear;

       

      I am trying to dig into the VPAID Library to try and figure it out, but it seems like something is really broken here - Please help, OSMF dev team, you're my only hope!

       

      Cheers,

      mark