Order of advertising events

When your playback includes advertising, Browser TVSDK dispatches events/notifications in generally expected sequences. Your player can implement actions based on events in the expected sequence.

When playing ads, the order of events is:

  • AdobePSDK.PSDKEventType.AD_BREAK_STARTED

  • The following are dispatched for every ad in the ad break:

    • AdobePSDK.PSDKEventType.AD_STARTED
    • AdobePSDK.PSDKEventType.AD_PROGRESS (multiple times during an ad’s playback)
    • AdobePSDK.PSDKEventType.AD_COMPLETED
  • AdobePSDK.PSDKEventType.AD_BREAK_COMPLETED

The following example shows a typical progression of ad playback events:

player.addEventListener(AdobePSDK.PSDKEventType.AD_BREAK_STARTED, onAdbreakStarted); 
player.addEventListener(AdobePSDK.PSDKEventType.AD_STARTED, onAdStarted); 
player.addEventListener(AdobePSDK.PSDKEventType.AD_PROGRESS, onAdProgress); 
player.addEventListener(AdobePSDK.PSDKEventType.AD_COMPLETED, onAdCompleted); 
player.addEventListener(AdobePSDK.PSDKEventType.AD_BREAK_COMPLETED, onAdbreakCompleted);

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now