tracker/nonLinearEvents.js

/**
 * Interface for classes that may emit non linear VAST events.
 *
 * @interface NonLinearEvents
 */

/**
 * Fires when the user clicked or otherwise activated a control used to pause streaming content, which either expands the ad within the player’s viewable area or “takes-over” the streaming content area by launching an additional portion of the ad.
 *
 * @event NonLinearEvents#acceptInvitation
 */
export const acceptInvitation = 'acceptInvitation';

/**
 * Fires when the user clicked or otherwise activated a control used to pause streaming content, which either expands the ad within the player’s viewable area or “takes-over” the streaming content area by launching an additional portion of the ad.
 *
 * @event NonLinearEvents#adCollapse
 */
export const adCollapse = 'adCollapse';

/**
 * Not to be confused with an impression, this event indicates that an individual creative portion of the ad was viewed.
 *
 * @event NonLinearEvents#creativeView
 */
export const creativeView = 'creativeView';

/**
 * Fires when the user clicked or otherwise activated a control for removing the ad.
 *
 * @event NonLinearEvents#close
 */
export const close = 'close';

const nonLinearEvents = {
  acceptInvitation,
  adCollapse,
  close,
  creativeView
};

export default nonLinearEvents;