Class: StreamEvent

Enumeration

Type

static

string

List of event types supported by the IMA DAI SDK.

Value

AD_PERIOD_STARTED

Fired every time the stream switches from content to advertising or slate. This will be fired even when an ad is played a second time or when seeking into an ad.

AD_PERIOD_ENDED

Fired every time the stream switches from advertising or slate to content. This will be fired even when an ad is played a second time or when seeking into an ad.

AD_PROGRESS

Fired when there is an update to an ad's progress.

CLICK

Dispatched when the click element is clicked or tapped while an ad is being played.

STARTED

Fired when an ad starts.

FIRST_QUARTILE

Fired when an ad reaches its first quartile.

MIDPOINT

Fired when an ad reaches its midpoint.

THIRD_QUARTILE

Fired when an ad reaches its third quartile.

COMPLETE

Fired when an ad is complete.

PAUSED

Fired when the ad is paused by the user.

RESUMED

Fired when the ad is resumed by the user.

Property

Type

static

string

List of event types supported by the IMA DAI SDK.

Value

AD_PERIOD_STARTED

Fired every time the stream switches from content to advertising or slate. This will be fired even when an ad is played a second time or when seeking into an ad.

AD_PERIOD_ENDED

Fired every time the stream switches from advertising or slate to content. This will be fired even when an ad is played a second time or when seeking into an ad.

AD_PROGRESS

Fired when there is an update to an ad's progress.

CLICK

Dispatched when the click element is clicked or tapped while an ad is being played.

STARTED

Fired when an ad starts.

FIRST_QUARTILE

Fired when an ad reaches its first quartile.

MIDPOINT

Fired when an ad reaches its midpoint.

THIRD_QUARTILE

Fired when an ad reaches its third quartile.

COMPLETE

Fired when an ad is complete.

PAUSED

Fired when the ad is paused by the user.

RESUMED

Fired when the ad is resumed by the user.

Methods

getAd

getAd() returns Ad

Returns

nullable Ad return object with ad information.

getStreamData

getStreamData() returns StreamData

Returns

non-null StreamData return object with stream information.