Interface AdPodInfo


Represents ad pod information for DAI streams.
Methods
getAdPosition
getMaxDuration
getPodIndex
Returns the index of the ad pod.
getTimeOffset
getTotalAds

Methods


getAdPosition

getAdPosition(): number
Returns
number the position of the ad in the pod.

getMaxDuration

getMaxDuration(): number
Returns
number the maximum duration of the pod in seconds.

getPodIndex

getPodIndex(): number
Returns the index of the ad pod.

DAI VOD: For a preroll ad pod, returns 0. For midroll ad pods, returns a sequential positive integer for the index the ad pod. For a postroll ad pod, returns -1. Defaults to a 0 value if this ad isn't part of a pod, or this pod isn't part of a playlist.

DAI live stream: For a preroll pod, returns a 0 value . For midroll ad pods, returns the break ID. Returns a -2 value if IMA SDK cannot determine the pod index due to an internal error.
Returns
number

getTimeOffset

getTimeOffset(): number
Returns
number the time offset in seconds.

getTotalAds

getTotalAds(): number
Returns
number the total number of ads in the pod.