onAdProgress
Collapse the table of content
Expand the table of content

AdScheduler.onAdProgress event

Raised when ad playback reaches quartile checkpoints.

Syntax


function handler(adScheduler, eventInfo) { /* Your code */ }
 
// addEventListener syntax
adScheduler.addEventListener("adprogress", handler);
adScheduler.removeEventListener("adprogress", handler);
 
- or -

adScheduler.onadprogress = handler;


Event handler parameters

adScheduler

Type: Object

The AdScheduler which fired this event.

eventInfo

Type: Object

An object that contains the following members:

  • progress: A MediaProgress value that indicates the ad checkpoint that has been reached.
  • clip: The video clip that is being played. This object is not intended to be used in your code.
  • adPackage: An object that represents the part of the ad payload that corresponds to the ad that is playing. This object is not intended to be used in your code.

Requirements

Client

Windows 10

Namespace

MicrosoftNSJS.Advertising

Library

AdScheduler.js

See also

AdScheduler

 

 

Show:
© 2017 Microsoft