Class: shaka.ads.InterstitialPreloadTask

Constructor

new InterstitialPreloadTask(playernon-null, interstitialnon-null, sendEventopt, nullable, uriopt, nullable, readSignalingnullable)

Parameters:
Name Type Attributes Default Description
player shaka.Player
interstitial shaka.extern.AdInterstitial
sendEvent function <optional>
<nullable>
null
uri string <optional>
<nullable>
null The URI to request, when not the one of the interstitial.
readSignaling function <nullable>
null Reads the ads signaled in the presentation, once its manifest is parsed.
Implements:
Source:

Members

presentedAds_ :Promise.PromiseWithResolvers<?Array<!shaka.ads.InterstitialAdManager.PresentedAd>>

The ads signaled in the presentation, or null if they could not be read.
Type:
Source:

released_ :boolean

Type:
  • boolean
Source:

sendEvent_ :?function(string, Map<string, Object>=)

Type:
  • ?function(string, Map<string, Object>=)
Source:

Methods

getInitialError() → {shaka.util.Error}

Returns the initial preload error, if any.
Source:
Returns:
Type
shaka.util.Error

getPreloadManager() → {shaka.media.PreloadManager}

Returns the PreloadManager if preload succeeded.
Source:
Returns:
Type
shaka.media.PreloadManager

getPresentedAds() → {Promise<?Array<!shaka.ads.InterstitialAdManager.PresentedAd>>}

Resolves with the ads signaled in the presentation once it has been parsed, or with null if they could not be read.
Source:
Returns:
Type
Promise<?Array<!shaka.ads.InterstitialAdManager.PresentedAd>>

release()

Request that this object release all internal references.
Implements:
Source:

start_(interstitialnon-null, uri, readSignalingnullable)

Parameters:
Name Type Attributes Description
interstitial shaka.extern.AdInterstitial
uri string
readSignaling ?function(!shaka.media.PreloadManager): !Array<!shaka.ads.InterstitialAdManager.PresentedAd> <nullable>
Source: