i'm trying to add some prerolls to my video player.
works like a charm!
the one thing i cant get to work are the clickthroughs.
in the VASTNewSample (http://opensource.adobe.com/svn/opensource/osmf/tags/1.0gm/apps/samples/libs/VASTNewSample)
the click events for the preroll work automaticly.
I'm using a vast document generated by an openx adserver.
vastVersion is 1 which means the vast1MediaGenerator is used to create the media element.
vastMediaGenerator = new VASTMediaGenerator();
var place:String = VASTMediaGenerator.PLACEMENT_NONLINEAR;
var vastElements:Vector.<MediaElement> = vastMediaGenerator.createMediaElements(vastLoadTrait.vastDocument, place);
for each(var mediaElement:MediaElement in vastElements)
_player.media = mediaElement;
This issue is currently being addressed and will be solved very soon. Once the OMSF team has a chance to review the patch they will place it in the OSMF repository. This was a known issue but not addressed because VAST 1 is deprecated by the IAB and we spent our efforts working on the VAST 2 implementation. However, I understand that a few publishers will need VAST 1 clickthrus because advertisers are still moving away from that standard and clickthurs is an important part of the standard. I will update you when the fix is ready on the repository.
thank you for your support!