Redirect Notice

Redirect Notice

The page you requested has been relocated to Player Docs.

DAI

DAI

new DAI(player, configopt, key)

Creates an instance of the React plugin.

Parameters
Name Type Attributes Description
player akamai.amp.Player

The player instance

config akamai.amp.dai.DAIConfig | Object <optional>

The configuration override object, or JSON string. Must adhear to the akamai.amp.dai.DAIConfig interface.

key string

The plugin identifier.

Members

adTimeRemaining

:Number

The remaining time of an individual DAI ad creative.

companions

:Object

Any companion ads associated with the DAI stream request.

config

:Object

The DAI configuration object.

container

:Object

The HTML container in which DAI ads are rendered.

currentAd

:Object

The current ad in the DAI insertion sequence.

enabled

:Boolean

The DAI enabled state.

inProgress

:Boolean

The boolean status of ad playback.

paused

:Boolean

The paused status of DAI ad playback.

snapForwardTime

:Number

Provides an option to specify a custom time at which media will resume after ad playback.

started

:Boolean

The started status of DAI playback.