Constructor
new SvtaAdManager(player, onEvent)
Parameters:
| Name | Type | Description |
|---|---|---|
player |
shaka.Player | |
onEvent |
function |
- Implements:
- Source:
Members
onEvent_ :function(!shaka.util.FakeEvent)
Type:
- function(!shaka.util.FakeEvent)
- Source:
trackings_ :Map<string, shaka.extern.AdTrackingInfo>
Type:
- Map<string, shaka.extern.AdTrackingInfo>
- Source:
Methods
isValidMetadata(metadata) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
metadata |
shaka.extern.HLSMetadata |
- Source:
Returns:
- Type
- boolean
isValidRegion(region) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
region |
shaka.extern.TimelineRegionInfo |
- Source:
Returns:
- Type
- boolean
addTracking_(trackingsnon-null)
Parameters:
| Name | Type | Description |
|---|---|---|
trackings |
Array<shaka.extern.AdTrackingInfo> |
- Source:
configure(config)
Called by the AdManager to provide an updated configuration any time it
changes.
Parameters:
| Name | Type | Description |
|---|---|---|
config |
shaka.extern.AdsConfiguration |
- Source:
createBaseSetupTracking_()
- Source:
createSingleSetupTracking_()
- Source:
createSlidingSetupTracking_()
- Source:
cuepointsChanged_()
- Source:
playbackEnd_()
- Source:
playbackStart_()
- Source:
processTrackingEvent_(type)
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string |
- Source:
release()
Request that this object release all internal references.
- Implements:
- Source:
sendEvent_(type, dictopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
type |
string | ||
dict |
Map<string, Object> |
<optional> |
- Source:
sendTrackingEvent_(url)
Parameters:
| Name | Type | Description |
|---|---|---|
url |
string |
- Source:
setupCurrentTracking_()
- Source:
stop()
Resets the SVTA manager and removes any continuous polling.
- Source:
unSetupCurrentTracking_(completeopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
complete |
boolean |
<optional> |
false |
- Source: