Una classe che rappresenta un oggetto informazioni pod di annunci durante l'inserimento di annunci dinamici.
Metodi
getAdPosition
getAdPosition() restituisce numero
Ritorni
number
getMaxDuration
getMaxDuration() restituisce numero
Ritorni
number
getPodIndex
getPodIndex() restituisce numero
Restituisce l'indice del pod di annunci.
DAI VOD: per un pod pre-roll, restituisce 0. Per gli annunci mid-roll, restituisce 1, 2,...,N.
Per un pod post-roll, restituisce -1. Il valore predefinito è 0 se questo annuncio non fa parte di un pod o se il pod non fa parte di una playlist.
Live streaming DAI: per un pod pre-roll, restituisce 0. Per gli annunci mid-roll, restituisce l'ID interruzione. Restituisce -2 se non è possibile determinare l'indice del pod (errore interno).
[null,null,["Ultimo aggiornamento 2024-07-09 UTC."],[[["`AdPodInfo` provides details about ad pods during dynamic ad insertion, including position, maximum duration, and total ads."],["The `getPodIndex()` method returns the index of the ad pod, varying for pre-roll, mid-roll, and post-roll placements in VOD and live streams."],["Other methods within the `AdPodInfo` class allow access to the ad position within the pod, the maximum allowed duration for ads, and the time offset for ad insertion."]]],["The `AdPodInfo` class provides information about ad pods in dynamic ad insertion. Key actions include retrieving: the ad's position within the pod (`getAdPosition`), the maximum duration of the pod (`getMaxDuration`), and the ad pod's index (`getPodIndex`). `getPodIndex` returns different values for VOD and live streams, indicating preroll, midroll, and postroll status. Additionally, the class allows access to the time offset (`getTimeOffset`) and the total number of ads in the pod (`getTotalAds`).\n"]]