YuMeWrapper

YuMeWrapper

YuMeWrapper is an ActionScript 3 wrapper around YuMe Network’s library SWF for publishers. It provides a consistent abstraction of their ActionScript 3 SDK, as well as much more thorough YuMe SDK documentation than what YuMe themselves provide.

This wrapper supports all of the standard YuMe library functionality, including pre-roll, mid-roll, overlay, and post-roll advertisements, with two exceptions: midroll playlist prefetching is not supported, and extra fullscreen options are not supported. It also provides loads of additional fixes and functionality that does not exist in the YuMe library core:

  • No need for a container MovieClip; the YuMeWrapper is completely self-encapsulated and can be added/removed directly on the stage. (Of course, you can still use a separate container if you want.)
  • Fixes the normalscreen_x and normalscreen_y properties, which do not work properly in the library SWF.
  • Restores the ability to delay the start of an overlay, which does not work properly in the library SWF.
  • Attempts to fix ads, such as the Hugo example preroll, that never dispatch ad_playing events.
  • Adds ProgressEvent.PROGRESS events for ads that provide information about how many bytes have been loaded.
  • Adds a new wrapper_timeElapsed event that automatically dispatches regularly during ad playback, for updating UI elements on a regular interval.
  • Converts events to their own separate AdEvent class, and attaches related data when appropriate (e.g. ad_cb_flash_event events include the related CompanionBanner object).
  • Error events are dispatched as ErrorEvent instead of Event.
  • Companion banners and skins can be added directly to the stage, if desired; no need to write any code to get a fully functioning banner or skin.
  • Companion banners and iframes contain a toHtml() method that generates valid HTML so you don’t have to do it yourself.
  • Companion banner size identifiers are normalized as much as possible.

Get it now!

Download YuMeWrapper 1.0 | Join the discussion