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
pod_ :shaka.extern.AdCreativeSignaling.Pod
Type:
- shaka.extern.AdCreativeSignaling.Pod
podState_ :shaka.ads.SvtaInterstitialTracker.PodState
Type:
podTracker_ :shaka.ads.InterstitialTracker
Type:
resolve_ :function(): !Promise
Type:
- function(): !Promise
slot_ :shaka.ads.InterstitialTracker
Type:
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 |
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