com.ooyala.android.ads.vast.VASTHelper Class Reference

This is a static helper class to deserialize a VMAP XML document into VMAP ad spots. More...

Static Public Member Functions

static boolean parse (Element e, List< VASTAdSpot > spots, int duration)
 Parse a VMAP XML element according to the spec and generates a list of VASTAdSpots. More...
 
static Element getFirstElementByName (Element e, String name)
 

Detailed Description

This is a static helper class to deserialize a VMAP XML document into VMAP ad spots.

Member Function Documentation

static Element com.ooyala.android.ads.vast.VASTHelper.getFirstElementByName ( Element  e,
String  name 
)
static
static boolean com.ooyala.android.ads.vast.VASTHelper.parse ( Element  e,
List< VASTAdSpot spots,
int  duration 
)
static

Parse a VMAP XML element according to the spec and generates a list of VASTAdSpots.

Parameters
ethe root element of the VMAP XML
spotsa list of vast ad spots as output
durationthe content duration, used to compute percentage time offset
Returns
true if pass succeeds, false if failed