akamai.amp.Ads
The ads base class.
Constructor
Ads
new Ads()
Members
companions
(readonly) :Array.<Object>
A list of companion ads associated with the current linear ad. The structure of the companion object is defined by the ad provider.
enabled
:boolean
Enables / disables the ad plugin.
inProgress
(readonly) :boolean
Flag indicating whether or not ad content is currently playing
paused
(readonly) :boolean
Flag indicating whether or not ad content is paused
started
(readonly) :boolean
Flag indicating whether or not ad content has started
Methods
requestAd
requestAd()
Manually triggers an ad break by requesting the next ad.
terminateAd
terminateAd()
Stops playback of the current ad.
terminateAllAds
terminateAllAds()
Stops playback of the all ads.