Show Menu
TOPICS×

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);