Class: shaka.ads.ClientSideAdManager

Constructor

new ClientSideAdManager(adContainer, video, locale, onEvent)

Parameters:
Name Type Description
adContainer HTMLElement
video HTMLMediaElement
locale string
onEvent function
Implements:
Source:

Members

adContainer_ :HTMLElement

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

Methods

addImaEventListeners_()

Source:

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: