Constructor
new ServerSideAdManager(adContainer, video, locale, onEvent)
Parameters:
| Name | Type | Description | 
|---|---|---|
adContainer | 
            
            HTMLElement | |
video | 
            
            HTMLMediaElement | |
locale | 
            
            string | |
onEvent | 
            
            function | 
- Implements:
 - Source:
 
Members
adProgressData_ :google.ima.dai.api.AdProgressData
Type:
- google.ima.dai.api.AdProgressData
 
- Source:
 
onEvent_ :function(!shaka.util.FakeEvent)
Type:
- function(!shaka.util.FakeEvent)
 
- Source:
 
snapForwardTime_ :number
    Time to seek to after an ad if that ad was played as the result of
snapback.
    Type:
- number
 
- Source:
 
streamManager_ :google.ima.dai.api.StreamManager
Type:
- google.ima.dai.api.StreamManager
 
- Source:
 
Methods
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.
onAdBreakEnded_()
onAdProgress_(enon-null)
Parameters:
| Name | Type | Description | 
|---|---|---|
e | 
            
            google.ima.dai.api.StreamEvent | 
onAdStart_(enon-null)
Parameters:
| Name | Type | Description | 
|---|---|---|
e | 
            
            google.ima.dai.api.StreamEvent | 
onCuePointsChanged_(enon-null)
Parameters:
| Name | Type | Description | 
|---|---|---|
e | 
            
            google.ima.dai.api.StreamEvent | 
onError_()
onLoaded_(enon-null)
Parameters:
| Name | Type | Description | 
|---|---|---|
e | 
            
            google.ima.dai.api.StreamEvent | 
onTimedMetadata(type, data, timestamp)
Parameters:
| Name | Type | Description | 
|---|---|---|
type | 
            
            string | |
data | 
            
            Uint8Array | string | Comes as string in DASH and as Uint8Array in HLS. | 
timestamp | 
            
            number | (in seconds) | 
release()
    Request that this object release all internal references.
- Implements:
 - Source:
 
replaceAdTagParameters(adTagParameters)
Parameters:
| Name | Type | Description | 
|---|---|---|
adTagParameters | 
            
            Object | 
stop()
    Resets the stream manager and removes any continuous polling.
streamRequest(streamRequestnon-null, backupUrlopt) → {Promise.<string>}
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
streamRequest | 
            
            google.ima.dai.api.StreamRequest | ||
backupUrl | 
            
            string | 
                
                    <optional> | 
            
            
            
Returns:
- Type
 - Promise.<string>