AdEvent.AdEventType

public enum AdEvent.AdEventType


Types of events that can occur during ad playback.

Summary

Enum Values

AD_BREAK_ENDED

Fired when an ad break in a stream ends.

AD_BREAK_FETCH_ERROR

Fired when an ad break will not play back any ads.

AD_BREAK_READY

Fired when an ad break is ready from VMAP or ad rule ads.

AD_BREAK_STARTED

Fired when an ad break in a stream starts.

AD_BUFFERING

Fired when playback stalls while the ad buffers.

AD_PERIOD_ENDED

Fired when an ad period in a stream ends.

AD_PERIOD_STARTED

Fired when an ad period in a stream starts.

AD_PROGRESS

Fired to inform of ad progress and can be used by publisher to display a countdown timer.

ALL_ADS_COMPLETED

Fired when the ads manager is done playing all the valid ads in the ads response, or when the response doesn't return any valid ads.

CLICKED

Fired when an ad is clicked.

COMPLETED

Fired when an ad completes playing.

CONTENT_PAUSE_REQUESTED

Fired when content should be paused.

CONTENT_RESUME_REQUESTED

Fired when content should be resumed.

CUEPOINTS_CHANGED

Fired when VOD stream cuepoints have changed.

FIRST_QUARTILE

Fired when the ad playhead crosses first quartile.

ICON_FALLBACK_IMAGE_CLOSED

The user has closed the icon fallback image dialog.

ICON_TAPPED

The user has tapped an ad icon.

LOADED

Fired when the VAST response has been received.

LOG

Fired to enable the SDK to communicate a message to be logged, which is stored in adData.

MIDPOINT

Fired when the ad playhead crosses midpoint.

PAUSED

Fired when an ad is paused.

RESUMED

Fired when an ad is resumed.

SKIPPABLE_STATE_CHANGED

Fired when an ad changes its skippable state.

SKIPPED

Fired when an ad was skipped.

STARTED

Fired when an ad starts playing.

TAPPED

Fired when a non-clickthrough portion of a video ad is clicked.

THIRD_QUARTILE

Fired when the ad playhead crosses third quartile.

Public methods

static AdEvent.AdEventType

Returns the enum constant of this type with the specified name.

static AdEvent.AdEventType[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

AD_BREAK_ENDED

AdEvent.AdEventType AdEvent.AdEventType.AD_BREAK_ENDED

Fired when an ad break in a stream ends. Communicated to the publisher through player APIs.

AD_BREAK_FETCH_ERROR

AdEvent.AdEventType AdEvent.AdEventType.AD_BREAK_FETCH_ERROR

Fired when an ad break will not play back any ads.

AD_BREAK_READY

AdEvent.AdEventType AdEvent.AdEventType.AD_BREAK_READY

Fired when an ad break is ready from VMAP or ad rule ads. This will only fire if autoPlayAdBreaks has been set to false in ImaSdkSettings. If autoPlayAdBreaks is true, ads will play without firing this event. Here, adData has the following property: - adBreakTime: the time at which the ad break occurred. 0 for pre-rolls, -1 for post-rolls. For mid-rolls, content playhead time, in seconds.

AD_BREAK_STARTED

AdEvent.AdEventType AdEvent.AdEventType.AD_BREAK_STARTED

Fired when an ad break in a stream starts. Communicated to the publisher through player APIs.

AD_BUFFERING

AdEvent.AdEventType AdEvent.AdEventType.AD_BUFFERING

Fired when playback stalls while the ad buffers.

AD_PERIOD_ENDED

AdEvent.AdEventType AdEvent.AdEventType.AD_PERIOD_ENDED

Fired when an ad period in a stream ends. Communicated to the publisher through player APIs.

AD_PERIOD_STARTED

AdEvent.AdEventType AdEvent.AdEventType.AD_PERIOD_STARTED

Fired when an ad period in a stream starts. Communicated to the publisher through player APIs. This includes the entire ad break including slate as well. This event will be fired even for ads that are being replayed or when seeking to the middle of an ad break.

AD_PROGRESS

AdEvent.AdEventType AdEvent.AdEventType.AD_PROGRESS

Fired to inform of ad progress and can be used by publisher to display a countdown timer.

ALL_ADS_COMPLETED

AdEvent.AdEventType AdEvent.AdEventType.ALL_ADS_COMPLETED

Fired when the ads manager is done playing all the valid ads in the ads response, or when the response doesn't return any valid ads.

CLICKED

AdEvent.AdEventType AdEvent.AdEventType.CLICKED

Fired when an ad is clicked.

COMPLETED

AdEvent.AdEventType AdEvent.AdEventType.COMPLETED

Fired when an ad completes playing.

CONTENT_PAUSE_REQUESTED

AdEvent.AdEventType AdEvent.AdEventType.CONTENT_PAUSE_REQUESTED

Fired when content should be paused. This usually happens right before an ad is about to hide the content.

CONTENT_RESUME_REQUESTED

AdEvent.AdEventType AdEvent.AdEventType.CONTENT_RESUME_REQUESTED

Fired when content should be resumed. This usually happens when an ad finishes or collapses.

CUEPOINTS_CHANGED

AdEvent.AdEventType AdEvent.AdEventType.CUEPOINTS_CHANGED

Fired when VOD stream cuepoints have changed.

FIRST_QUARTILE

AdEvent.AdEventType AdEvent.AdEventType.FIRST_QUARTILE

Fired when the ad playhead crosses first quartile.

ICON_FALLBACK_IMAGE_CLOSED

AdEvent.AdEventType AdEvent.AdEventType.ICON_FALLBACK_IMAGE_CLOSED

The user has closed the icon fallback image dialog. This may be a good time to resume ad playback if the user is ready to continue playing the ad. This event only fires for Connected TV devices.

ICON_TAPPED

AdEvent.AdEventType AdEvent.AdEventType.ICON_TAPPED

The user has tapped an ad icon. On Android mobile apps, the SDK will navigate to the landing page. On Connected TV devices, the SDK will present a modal dialog containing the VAST icon fallback image.

LOADED

AdEvent.AdEventType AdEvent.AdEventType.LOADED

Fired when the VAST response has been received.

LOG

AdEvent.AdEventType AdEvent.AdEventType.LOG

Fired to enable the SDK to communicate a message to be logged, which is stored in adData. This can be fired when a VPAID ad sends a LOG message, or in the event of a non-fatal playback error (for example, an ad in a pod cannot be played). Here, adData has the following properties: - type: the type of error. - errorCode: the error code. - errorMessage: the error message. - innerError: detailed information about the error, if applicable; will be absent otherwise.

MIDPOINT

AdEvent.AdEventType AdEvent.AdEventType.MIDPOINT

Fired when the ad playhead crosses midpoint.

PAUSED

AdEvent.AdEventType AdEvent.AdEventType.PAUSED

Fired when an ad is paused.

RESUMED

AdEvent.AdEventType AdEvent.AdEventType.RESUMED

Fired when an ad is resumed.

SKIPPABLE_STATE_CHANGED

AdEvent.AdEventType AdEvent.AdEventType.SKIPPABLE_STATE_CHANGED

Fired when an ad changes its skippable state.

SKIPPED

AdEvent.AdEventType AdEvent.AdEventType.SKIPPED

Fired when an ad was skipped.

STARTED

AdEvent.AdEventType AdEvent.AdEventType.STARTED

Fired when an ad starts playing.

TAPPED

AdEvent.AdEventType AdEvent.AdEventType.TAPPED

Fired when a non-clickthrough portion of a video ad is clicked.

THIRD_QUARTILE

AdEvent.AdEventType AdEvent.AdEventType.THIRD_QUARTILE

Fired when the ad playhead crosses third quartile.

Public methods

valueOf

public static AdEvent.AdEventType valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
AdEvent.AdEventType

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static AdEvent.AdEventType[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
AdEvent.AdEventType[]

an array containing the constants of this enum type, in the order they're declared