AI-generated Key Takeaways
-
The
AdPodInfo
class represents an ad pod info object used during dynamic ad insertion. -
Methods available include
getAdPosition
,getMaxDuration
,getPodIndex
,getTimeOffset
, andgetTotalAds
. -
getPodIndex
returns the index of the ad pod, with specific values for preroll, midroll, and postroll pods in DAI VOD and DAI live streams.
AdPodInfo
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).
- Returns
-
number
getTimeOffset
getTimeOffset() returns number
- Returns
-
number
getTotalAds
getTotalAds() returns number
- Returns
-
number