Methods
addAdUrlInterstitial(url) → {Promise}
Parameters:
| Name |
Type |
Description |
url |
string
|
|
- Source:
Returns:
-
Type
-
Promise
addCustomInterstitial(interstitial)
Parameters:
- Source:
Parameters:
| Name |
Type |
Description |
url |
string
|
|
- Source:
Called by the Player to provide an updated configuration any time it
changes.
Must be called at least once before init*().
Parameters:
- Source:
getStats()
Get statistics for the current playback session. If the player is not
playing content, this will return an empty stats object.
- Source:
Parameters:
- Source:
Returns:
-
Type
-
Promise
onManifestUpdated(isLive)
Fired when the manifest is updated.
Parameters:
| Name |
Type |
Description |
isLive |
boolean
|
|
- Source:
replaceServerSideAdTagParameters(adTagParameters)
Parameters:
| Name |
Type |
Description |
adTagParameters |
Object
|
|
- Source:
requestClientSideAds(imaRequestnon-null, adsRenderingSettingsnullable)
Parameters:
| Name |
Type |
Attributes |
Description |
imaRequest |
google.ima.AdsRequest
|
|
|
adsRenderingSettings |
google.ima.AdsRenderingSettings
|
<nullable>
|
|
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
url |
string
|
|
|
adsParams |
Object
|
|
|
backupUrl |
string
|
<optional>
|
|
- Source:
Returns:
-
Type
-
Promise<string>
requestServerSideStream(imaRequestnon-null, backupUrlopt) → {Promise<string>}
Parameters:
| Name |
Type |
Attributes |
Description |
imaRequest |
google.ima.dai.api.StreamRequest
|
|
|
backupUrl |
string
|
<optional>
|
|
- Source:
Returns:
-
Type
-
Promise<string>
setContainers(clientSideAdContainernon-null, serverSideAdContainernon-null)
Parameters:
| Name |
Type |
Description |
clientSideAdContainer |
HTMLElement
|
|
serverSideAdContainer |
HTMLElement
|
|
- Source:
setLocale(locale)
Parameters:
| Name |
Type |
Description |
locale |
string
|
|
- Source:
updateClientSideAdsRenderingSettings(adsRenderingSettingsnon-null)
Parameters:
| Name |
Type |
Description |
adsRenderingSettings |
google.ima.AdsRenderingSettings
|
|
- Source:
Type Definitions
Factory
A factory for creating the ad manager.
Type:
-
function(shaka.Player): !shaka.extern.IAdManager
- Source: