ObjectAd configuration for the upcoming content video.
Kind: global class
PluginErrorXMLPromisePromisePromise| Param | Type | Description |
|---|---|---|
| playerProxy | Object |
extended from FacadeBase |
| adsAPI | Object |
is a reference to the session AdSlotAPI |
PluginErrorRequests details about the most recent error that has occurred.
Kind: instance property of AdPlaylistAPI
Returns: PluginError - Description object of the most recent error or null.
XMLReturns the VMAP that has been collected for the current (content) session
Kind: instance property of AdPlaylistAPI
Returns: XML - XML as live parsable DOM representation, querySelector and similar work on this
PromiseStarts requesting a VMAP from the ad server
Kind: instance method of AdPlaylistAPI
Returns: Promise - Resolves if loading the VMAP has been completed
| Param | Type | Description |
|---|---|---|
| playlistSpecs | AdPlaylistSetup |
Ad configuration for the upcoming content video. |
| vastMacros | Object |
VAST macros and their values as defined in https://interactiveadvertisingbureau.github.io/vast/vast4macros/vast4-macros-latest.html |
PromiseStarts playback and monitoring of the content and automatically inserts ad-slots
based on the timeOffset values of each VMAP AdBreak.
AdBreaks with a timeOffset equally to 0, "start" or "0%" get requested immediately.
Kind: instance method of AdPlaylistAPI
Returns: Promise - Resolves if the playback started
PromiseImmediately stops monitoring content playback.
AdBreaks that have already started remain until they complete. If necessary, they must be canceled
via the AdSlotAPI.stopAdSlot().
Kind: instance method of AdPlaylistAPI
Returns: Promise - - Whether the ad slot could be closed and cleaned up or not.
ObjectAd configuration for the upcoming content video.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| tag | string |
VMAP Request URL |
| response | string |
direct VMAP XML |
| preroll | Object |
Separation Clip and Prefetching setup for the adBreak |
| midroll | Object |
Separation Clip and Prefetching setup |
| postroll | Object |
Separation Clip and Prefetching setup |
| overlay | Object |
Prefetching setup |