Ads

August 23, 2017 ยท View on GitHub

Overview

This plugin, with the VAST/VPAID plugin, manages the displaying of Ads before media starts playing.

It will fire the proper events depending of the nature of the Ads type (vast or vpaid) and takes care of the manipulation of the user's experience in general.

Keyword to use it

features: [..., 'ads']

API

ParameterTypeDefaultDescription
adsPrerollMediaUrlarray[]Collection of Ads URLs
adsPrerollAdUrlarray[]Collection of URLs that will be tracked through a click event when playing an Ad
adsPrerollAdEnableSkipbooleanfalseIf true, allows user to skip the pre-roll ad
adsPrerollAdSkipSecondsnumber-1If positive number entered, it will only allow skipping after the time has elasped
indexPrerollnumber0Keep track of the index for the preroll ads to be able to show more than one preroll