Stay organized with collections
Save and categorize content based on your preferences.
AdPodInfo
classpublic
A class representing an ad pod info object during dynamic ad insertion.
Methods
getAdPosition
getAdPosition() returns number
Returns
number
getMaxDuration
getMaxDuration() returns number
Returns
number
getPodIndex
getPodIndex() returns number
Returns the index of the ad pod.
DAI VOD: For a preroll pod, returns 0. For midrolls, returns 1, 2,...,N.
For a postroll pod, returns -1. Defaults to 0 if this ad is not part of a
pod, or this pod is not part of a playlist.
DAI live stream: For a preroll pod, returns 0. For midrolls, returns the
break ID. Returns -2 if pod index cannot be determined (internal error).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-04 UTC."],[[["The `AdPodInfo` class provides information about ad pods during dynamic ad insertion."],["It includes methods to access the ad position, maximum duration, pod index, time offset, and total number of ads within the pod."]]],["The `AdPodInfo` class provides information about an ad pod during dynamic ad insertion. Key methods include: `getAdPosition`, which returns the ad's position within the pod; `getMaxDuration`, which returns the maximum duration of the pod; `getPodIndex`, which returns the index of the pod; `getTimeOffset`, returning the pod's time offset; and `getTotalAds`, which provides the total number of ads in the pod. Each method returns a numerical value.\n"]]