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:

video_ :HTMLVideoElement

Type:
  • HTMLVideoElement
Source:

Methods

addImaEventListeners_()

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: