Ad-Related Events

Ad-related events are exposed on the Player V4 message bus, including the events in the following table.
  • Events related to ads all have the prefix OO.EVENTS.
  • You can subscribe to the events to invoke your own callback functions when they occur.
For documentation on all Player V4 events, see apidocs.ooyala.com.
Event Description
WILL_PLAY_ADS Ads for a given time slot will start playing now.

This event may be followed by multiple AD_POD_STARTED or AD_POD_ENDED events.

ADS_PLAYED Ads for a given time slot have finished playing.
AD_POD_STARTED A set of ads from a given ad manager has started playing.

This event may be followed by multiple WILL_PLAY_SINGLE_AD or SINGLE_AD_PLAYED events.

AD_POD_ENDED A set of ads from a given ad manager has finished playing (ended).
WILL_PLAY_SINGLE_AD A single linear ad will start playing now.
SINGLE_AD_PLAYED A single linear ad has finished playing.
WILL_PLAY_NONLINEAR_AD A nonlinear ad will start showing now.
NONLINEAR_AD_PLAYED A nonlinear ad has finished showing.
HIDE_NONLINEAR_AD A nonlinear ad will be hidden. This will not count against the clock timer for how long the ad should be shown.
SHOW_NONLINEAR_AD A nonlinear ad will be shown.
WILL_SHOW_COMPANION_ADS A companion ad should be played. The ad details are included in the event parameters.
ADS_ERROR This indicates that an ad manager encountered an error. An ad manager could raise this event at any time.
ADS_CLICKED The ad that is currently playing was clicked.
WILL_PAUSE_ADS A pause was requested on the ad that is currently playing.
WILL_RESUME_ADS A resume was requested on the ad that is currently playing.
PLAYHEAD_TIME_CHANGED This event contains the current position and total duration of the ad that is currently playing. This is used to update the scrubber bar.

해당 내용이 도움 되었습니까?