Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
AdPodInfo
classpublic
Una classe che rappresenta un oggetto di informazioni sul pod di annunci durante l'inserimento di annunci dinamici.
Metodi
getAdPosition
getAdPosition() restituisce un numero
Resi
number
getMaxDuration
getMaxDuration() restituisce un numero
Resi
number
getPodIndex
getPodIndex() restituisce un numero
Restituisce l'indice del pod di annunci.
VOD DAI: per un pod preroll, restituisce 0. Per gli annunci midroll, restituisce 1, 2,…, N.
Per un pod postroll, restituisce -1. Il valore predefinito è 0 se l'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).
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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"]]