Interface AdPodInfo
Stay organized with collections
Save and categorize content based on your preferences.
Represents ad pod information for DAI streams.
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.
getTimeOffset
getTimeOffset(): number
| Returns |
number
|
the time offset in seconds. |
getTotalAds
getTotalAds(): number
| Returns |
number
|
the total number of ads in the pod. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.
[null,null,["Last updated 2026-05-27 UTC."],[],[]]