Members
KEY :string
The HLS attribute, and asset list field, that carries the signaling.
Type:
- string
Methods
createDeferredPod_(podnon-null, startTime, id, networkingEnginenon-null) → {shaka.extern.DeferredInterstitial}
Parameters:
| Name | Type | Description |
|---|---|---|
pod |
shaka.extern.AdCreativeSignaling.Pod | |
startTime |
number | |
id |
string | |
networkingEngine |
shaka.net.NetworkingEngine |
Returns:
decodeMetadata(metadata) → {*}
Parameters:
| Name | Type | Description |
|---|---|---|
metadata |
shaka.extern.HLSMetadata |
Returns:
The decoded signaling, or null if there is none.
- Type
- *
decorateInterstitial(interstitialnon-null, data, podopt, nullable)
Attaches validated slot metadata to media identified by another format,
if the signaling describes a single slot. SVTA does not supply the URI or
change stitching decisions.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
interstitial |
shaka.extern.AdInterstitial | |||
data |
* | |||
pod |
shaka.extern.AdCreativeSignaling.Pod |
<optional> <nullable> |
null |
isArray_(value, validate) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
* | |
validate |
function(?Object): boolean |
Returns:
- Type
- boolean
isPod_(valuenullable, remoteFields) → {boolean}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value |
Object |
<nullable> |
|
remoteFields |
boolean |
Returns:
- Type
- boolean
isRemote_(valuenullable, enabled) → {boolean}
Remote fields are URLs, only allowed when the envelope declares them.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value |
Object |
<nullable> |
|
enabled |
boolean |
Returns:
- Type
- boolean
isSlot_(valuenullable, remoteFields) → {boolean}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value |
Object |
<nullable> |
|
remoteFields |
boolean |
Returns:
- Type
- boolean
isTime_(value) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
* |
Returns:
- Type
- boolean
isTrackingEvent_(valuenullable) → {boolean}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value |
Object |
<nullable> |
Returns:
- Type
- boolean
isValidMetadata(metadata) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
metadata |
shaka.extern.HLSMetadata |
Returns:
- Type
- boolean
isValidRegion(region) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
region |
shaka.extern.TimelineRegionInfo |
Returns:
- Type
- boolean
makeInterstitial_(slotnon-null, podnullable, anchor, id, groupId, podSize, podPosition) → {shaka.extern.AdInterstitial}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
slot |
shaka.extern.AdCreativeSignaling.Slot | ||
pod |
shaka.extern.AdCreativeSignaling.Pod |
<nullable> |
|
anchor |
number | ||
id |
string | ||
groupId |
string | ||
podSize |
number | ||
podPosition |
number |
Returns:
parseEnvelope(data, expectedTypeopt) → {shaka.extern.AdCreativeSignaling.CarriageEnvelope}
Validates an envelope before any of its payload is used. The version is
not checked, so earlier signaling without version, envelope type, slot
type or identifiers is accepted.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
data |
* | ||
expectedType |
string |
<optional> |
Returns:
- Type
- shaka.extern.AdCreativeSignaling.CarriageEnvelope
parseInterstitials(data, anchor, id, networkingEngineopt, nullable) → {shaka.ads.SvtaInterstitialParser.Result}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
data |
* | |||
anchor |
number | |||
id |
string | |||
networkingEngine |
shaka.net.NetworkingEngine |
<optional> <nullable> |
null | Used to resolve remote pod slots. Without it, pods with remote slots are ignored. |
Returns:
parseMetadata(metadata, networkingEngineopt, nullable) → {shaka.ads.SvtaInterstitialParser.Result}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
metadata |
shaka.extern.HLSMetadata | |||
networkingEngine |
shaka.net.NetworkingEngine |
<optional> <nullable> |
null | Used to resolve remote pod slots. Without it, pods with remote slots are ignored. |
Returns:
parseRegion(region, networkingEngineopt, nullable) → {shaka.ads.SvtaInterstitialParser.Result}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
region |
shaka.extern.TimelineRegionInfo | |||
networkingEngine |
shaka.net.NetworkingEngine |
<optional> <nullable> |
null | Used to resolve remote pod slots. Without it, pods with remote slots are ignored. |
Returns:
Type Definitions
Result
Type:
- {interstitials: !Array<shaka.extern.AdInterstitial>, deferred: !Array<!shaka.extern.DeferredInterstitial>}
Properties:
| Name | Type | Description |
|---|---|---|
interstitials |
Array<shaka.extern.AdInterstitial> | Interstitials ready to be scheduled. |
deferred |
Array<!shaka.extern.DeferredInterstitial> | Pods whose slots must be resolved before they can be scheduled. |