Class: shaka.ads.ServerSideAd

Constructor

new ServerSideAd(imaAd, video)

Parameters:
Name Type Description
imaAd google.ima.dai.api.Ad
video HTMLMediaElement
Implements:
Source:

Members

ad_ :google.ima.dai.api.Ad

Type:
  • google.ima.dai.api.Ad
Source:

adProgressData_ :google.ima.dai.api.AdProgressData

Type:
  • google.ima.dai.api.AdProgressData
Source:

Methods

canSkipNow() → {boolean}

Implements:
Source:
Returns:
Type
boolean

getDuration() → {number}

Implements:
Source:
Returns:
Type
number

getMinSuggestedDuration() → {number}

Gets the minimum suggested duration. Defaults to being equivalent to getDuration() for server-side ads.
Implements:
Source:
See:
Returns:
Type
number

getPositionInSequence() → {number}

Implements:
Source:
Returns:
Type
number

getRemainingTime() → {number}

Implements:
Source:
Returns:
Type
number

getSequenceLength() → {number}

Implements:
Source:
Returns:
Type
number

getTimeUntilSkippable() → {number}

Implements:
Source:
Returns:
Type
number

getVolume() → {number}

Implements:
Source:
Returns:
Type
number

isLinear() → {boolean}

Implements:
Source:
Returns:
Type
boolean

isMuted() → {boolean}

Implements:
Source:
Returns:
Type
boolean

isPaused() → {boolean}

Implements:
Source:
Returns:
Type
boolean

isSkippable() → {boolean}

Implements:
Source:
Returns:
Type
boolean

release()

Request that this object release all internal references.
Inherited From:
Implements:
Source:

resize(width, height)

Parameters:
Name Type Description
width number
height number
Implements:
Source:

setMuted(muted)

Parameters:
Name Type Description
muted boolean
Implements:
Source:

setProgressData(data)

Parameters:
Name Type Description
data google.ima.dai.api.AdProgressData
Source:

setVolume(volume)

Parameters:
Name Type Description
volume number
Implements:
Source: