onPodCountdown
Collapse the table of content
Expand the table of content

AdScheduler.onPodCountdown event

Raised when an ad is playing and indicates how much time remains in the current pod.

Syntax


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

adScheduler.onpodcountdown = handler;


Event handler parameters

adScheduler

Type: AdScheduler

The AdScheduler that raised the event.

eventData

Type: Object

An object that contains the following members:

  • remainingAdTime: The number of seconds left for the current ad.
  • remainingPodTime: The number of seconds left for the current pod.

Remarks

A pod is a group of ads that play in a sequence, such as a group of ads that play during a commercial break. For more details, see the IAB Digital Video Ad Serving Template (VAST) specification.

Requirements

Client

Windows 10

Namespace

MicrosoftNSJS.Advertising

Library

AdScheduler.js

See also

AdScheduler

 

 

Show:
© 2017 Microsoft