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
initialError_ :shaka.util.Error
Type:
preloadManager_ :shaka.media.PreloadManager
Type:
presentedAds_ :Promise.PromiseWithResolvers<?Array<!shaka.ads.InterstitialAdManager.PresentedAd>>
The ads signaled in the presentation, or null if they could not be
read.
Type:
- Promise.PromiseWithResolvers<?Array<!shaka.ads.InterstitialAdManager.PresentedAd>>
sendEvent_ :?function(string, Map<string, Object>=)
Type:
- ?function(string, Map<string, Object>=)
Methods
getInitialError() → {shaka.util.Error}
Returns the initial preload error, if any.
Returns:
- Type
- shaka.util.Error
getPreloadManager() → {shaka.media.PreloadManager}
Returns the PreloadManager if preload succeeded.
Returns:
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.
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> |