vpaid-ad
VPAID ad class for extending purposes.
This is a reference implementation of VPAID ad. Feel free to extend this to suit your needs. It implements the most basic set of VPAID methods.
Installing using npm
npm i --save vpaid-ad
Usage
You can extend it using this way:
const Linear = { // Do something super } window { return }
Your player can then call:
vpaid = windowvpaid
clickThru
There's a special clickThru method that you can use:
vpaid
The above function emits the parameters as both an object and as an array.
As an array:
As an object: