Class: shaka.ads.ClientSideAdManager

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:
  • HTMLElement
Source:

adDisplayContainer_ :google.ima.AdDisplayContainer

Type:
  • google.ima.AdDisplayContainer
Source:

adsRenderingSettings_ :google.ima.AdsRenderingSettings

Type:
  • google.ima.AdsRenderingSettings
Source:

imaAdsManager_ :google.ima.AdsManager

Type:
  • google.ima.AdsManager
Source:

onEvent_ :function(!shaka.util.FakeEvent)

Type:
  • function(!shaka.util.FakeEvent)
Source:

requestAdsStartTime_ :number

Type:
  • number
Source:

resizeObserver_ :ResizeObserver

Type:
  • ResizeObserver
Source:

video_ :HTMLVideoElement

Type:
  • HTMLVideoElement
Source:

videoPlayed_ :boolean

Type:
  • boolean
Source:

Methods

addImaEventListeners_()

Source:

configure(config)

Called by the AdManager to provide an updated configuration any time it changes.
Parameters:
Name Type Description
config shaka.extern.AdsConfiguration
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: