Videojs VAST/VPAID Multiple ads

AD EVENTS

Multiple VAST/VPAID Ads for Video

VAST/VPAID plugin by Nuevodevel allows to define and play multiple ads. The player will run through all available ad Tags and attempt to play it sequentially or at desired time position. Ads scheduler allows to play vast/vpaid as preroll, midroll or postroll ad. The plugin allows to play multiple ads sequentially, one after another.

In example above you can see total 5 VAST ads. 2 x preroll, 2 x midroll at 00:15 and 1 x postroll ad. Below you you have example of ads setup code.
player.vastAds ([
   {tagURL: "preroll-1-ad-tag-url", id: 'x01'},
   {tagURL: "preroll-2-ad-tag-url", id: 'x02'},
   {tagURL: "midroll-1-ad-tag-url", id: 'x03', timeOffset:"00:15"},
   {tagURL: "midroll-2-ad-tag-url", id: 'x04', timeOffset:'00:15'},
   {tagURL: "postrol-ad-tag-url", id: 'x04', timeOffset:'end'}
]);

As you can see, you can define multiple preroll ads to play one after another, multiple midroll ads at same or different time position and finally postroll ad.
For midroll ad you must define timeOffset option represented as number of seconds or as a string in time format, eg. "00:15".
For postroll ad timeOffset option must be represented as a string "end".
VAST/VPAID plugin is included only in GOLD version of Nuevo plugin.