Class: shaka.ads.SvtaInterstitialTracker.SlotTracker

Constructor

new SlotTracker(slotTrackernon-null, podnullable, podTrackernullable, podStatenullable, podOffset, getPosition, resolve)

Parameters:
Name Type Attributes Description
slotTracker shaka.ads.InterstitialTracker
pod shaka.extern.AdCreativeSignaling.Pod <nullable>
podTracker shaka.ads.InterstitialTracker <nullable>
podState shaka.ads.SvtaInterstitialTracker.PodState <nullable>
podOffset number The slot start relative to its pod.
getPosition function The slot playhead position.
resolve function
Implements:
Source:

Members

getPosition_ :function(): number

Type:
  • function(): number
Source:

pod_ :shaka.extern.AdCreativeSignaling.Pod

Type:
  • shaka.extern.AdCreativeSignaling.Pod
Source:

podOffset_ :number

Type:
  • number
Source:

resolve_ :function(): !Promise

Type:
  • function(): !Promise
Source:

Methods

onEvent(type)

Called for every ad event of the interstitial. May be called again with the same event when deferred data is resolved.
Parameters:
Name Type Description
type string
Implements:
Source:

onProgress(previous, position)

Called when media between two positions (relative to the start of the interstitial) was played at normal speed.
Parameters:
Name Type Description
previous number
position number
Implements:
Source:

release()

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

resolve() → {Promise}

Resolves data required for measurement that is not available yet.
Implements:
Source:
Returns:
Type
Promise