@videts/vide / vast / playWaterfall
Function: playWaterfall()
playWaterfall(
player,ads,options):Promise<SingleAdResult|null>
Defined in: vast/pod.ts:150
Try ads in waterfall order. Play the first one that loads successfully. Returns the result of the first successful ad, or null if all fail.
Parameters
player
ads
options
adPlugins?
(ad) => AdPlugin[]
onFinish?
(result) => void
Called synchronously when the winning ad finishes (or last failure).
source
"vast" | "vmap"
Returns
Promise<SingleAdResult | null>