Constructor
Parameters:
- Implements:
- Source:
Members
BREAK_END_ :string
Type:
- Source:
BREAK_START_ :string
Type:
- Source:
COMPLETE_ :string
Type:
- Source:
FIRSTQUARTILE_ :string
Type:
- Source:
IMPRESSION_ :string
Type:
- Source:
MIDPOINT_ :string
Type:
- Source:
MUTE_ :string
Type:
- Source:
PAUSE_ :string
Type:
- Source:
RESUME_ :string
Type:
- Source:
SKIP_STATE_CHANGED_ :string
Type:
- Source:
SKIPPED_ :string
Type:
- Source:
START_ :string
Type:
- Source:
THIRDQUARTILE_ :string
Type:
- Source:
UNMUTE_ :string
Type:
- Source:
adBreaks_ :Array<!mediaTailor.AdBreak>
Type:
-
Array<!mediaTailor.AdBreak>
- Source:
adContainer_ :HTMLElement
Type:
- Source:
backupUrl_ :string
Type:
- Source:
eventsSent :Array<string>
Type:
- Source:
firstTrackingRequest_ :boolean
Type:
- Source:
isLive_ :boolean
Type:
- Source:
onEvent_ :function(!shaka.util.FakeEvent)
Type:
-
function(!shaka.util.FakeEvent)
- Source:
playedAds_ :Array<string>
Type:
- Source:
snapForwardTime_ :number
Time to seek to after an ad if that ad was played as the result of
snapback.
Type:
- Source:
staticResources_ :Map<string, !Array<mediaTailorExternalResource.App>>
Type:
-
Map<string, !Array<mediaTailorExternalResource.App>>
- Source:
streamRequestStartTime_ :number
Type:
- Source:
trackingUrl_ :string
Type:
- Source:
Methods
addTrackingUrl(url)
Parameters:
| Name |
Type |
Description |
url |
string
|
|
- Source:
checkForSnapback_()
If a seek jumped over the ad break, return to the start of the
ad break, then complete the seek after the ad played through.
- Source:
checkLinearAds_(currentTime)
Parameters:
| Name |
Type |
Description |
currentTime |
number
|
|
- Source:
checkNonLinearAds_(currentTime)
Parameters:
| Name |
Type |
Description |
currentTime |
number
|
|
- Source:
Called by the AdManager to provide an updated configuration any time it
changes.
Parameters:
- Source:
displayNonLinearAd_(appsnon-null)
Parameters:
| Name |
Type |
Description |
apps |
Array<mediaTailorExternalResource.App>
|
|
- Source:
getCacheKeyForNonLinear_(nonLinearAd) → {string}
Parameters:
| Name |
Type |
Description |
nonLinearAd |
mediaTailor.NonLinearAd
|
|
- Source:
Returns:
-
Type
-
string
onAdBreakEnded_()
- Source:
onManifestUpdated(isLive)
Fired when the manifest is updated
Parameters:
| Name |
Type |
Description |
isLive |
boolean
|
|
- Source:
release()
Request that this object release all internal references.
- Implements:
- Source:
removeCurrentAdListeners_(skippedopt)
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
skipped |
boolean
|
<optional>
|
false
|
|
- Source:
requestSessionInfo_(url, adsParams)
Parameters:
| Name |
Type |
Description |
url |
string
|
|
adsParams |
Object
|
|
- Source:
requestStaticResource_(nonLinearAd)
Parameters:
| Name |
Type |
Description |
nonLinearAd |
mediaTailor.NonLinearAd
|
|
- Source:
requestTrackingInfo_(trackingUrl, firstRequest)
Parameters:
| Name |
Type |
Description |
trackingUrl |
string
|
|
firstRequest |
boolean
|
|
- Source:
sendInProgressEvents_(currentTime, ad)
Parameters:
| Name |
Type |
Description |
currentTime |
number
|
|
ad |
mediaTailor.Ad
|
|
- Source:
sendTrackingEvent_(eventType)
Parameters:
| Name |
Type |
Description |
eventType |
string
|
|
- Source:
setupAdBreakListeners_()
Setup Ad Break listeners
- Source:
setupCurrentAdListeners_()
- Source:
stop()
Resets the MediaTailor manager and removes any continuous polling.
- Source:
streamRequest(url, adsParams, backupUrl) → {Promise<string>}
Parameters:
| Name |
Type |
Description |
url |
string
|
|
adsParams |
Object
|
|
backupUrl |
string
|
|
- Source:
Returns:
-
Type
-
Promise<string>