Constructor
new ClientSideAdManager(adContainer, video, locale, adsRenderingSettingsnullable, onEvent)
Parameters:
Name |
Type |
Attributes |
Description |
adContainer |
HTMLElement
|
|
|
video |
HTMLMediaElement
|
|
|
locale |
string
|
|
|
adsRenderingSettings |
google.ima.AdsRenderingSettings
|
<nullable>
|
|
onEvent |
function
|
|
|
- Implements:
- Source:
Members
adContainer_ :HTMLElement
Type:
- Source:
adDisplayContainer_ :google.ima.AdDisplayContainer
Type:
-
google.ima.AdDisplayContainer
- Source:
adsRenderingSettings_ :google.ima.AdsRenderingSettings
Type:
-
google.ima.AdsRenderingSettings
- Source:
imaAdsManager_ :google.ima.AdsManager
Type:
- Source:
onEvent_ :function(!shaka.util.FakeEvent)
Type:
-
function(!shaka.util.FakeEvent)
- Source:
requestAdsStartTime_ :number
Type:
- Source:
resizeObserver_ :ResizeObserver
Type:
- Source:
video_ :HTMLVideoElement
Type:
- Source:
videoPlayed_ :boolean
Type:
- Source:
Methods
addImaEventListeners_()
- Source:
Called by the AdManager to provide an updated configuration any time it
changes.
Parameters:
- Source:
isFullScreenEnabled_() → {boolean}
- Source:
Returns:
-
Type
-
boolean
onAdComplete_(enullable)
Parameters:
Name |
Type |
Attributes |
Description |
e |
google.ima.AdEvent
|
<nullable>
|
|
- Source:
onAdError_(enon-null)
Parameters:
Name |
Type |
Description |
e |
google.ima.AdErrorEvent
|
|
- Source:
onAdsManagerLoaded_(enon-null)
Parameters:
Name |
Type |
Description |
e |
google.ima.AdsManagerLoadedEvent
|
|
- Source:
onAdStart_(enon-null)
Parameters:
Name |
Type |
Description |
e |
google.ima.AdEvent
|
|
- Source:
release()
Request that this object release all internal references.
- Implements:
- Source:
requestAds(imaRequestnon-null)
Parameters:
Name |
Type |
Description |
imaRequest |
google.ima.AdsRequest
|
|
- Source:
stop()
Stop all currently playing ads.
- Source:
updateAdsRenderingSettings(adsRenderingSettingsnon-null)
Parameters:
Name |
Type |
Description |
adsRenderingSettings |
google.ima.AdsRenderingSettings
|
|
- Source: