Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
AdPodInfo
classpublic
Klasa reprezentująca obiekt informacji o podgrupie reklamy podczas dynamicznego wstawiania reklamy.
Metody
getAdPosition
getAdPosition() zwraca liczbę
Zwroty
number
getMaxDuration
Funkcja getMaxDuration() zwraca liczbę
Zwroty
number
getPodIndex
Funkcja getPodIndex() zwraca liczbę
Zwraca indeks bloku reklamowego.
DAI VOD: w przypadku prerolla zwraca 0. W przypadku reklam midroll zwraca wartości 1, 2,…, N.
W przypadku podzbioru po reklamie zwraca wartość -1. Domyślnie 0, jeśli reklama nie jest częścią bloku reklamowego lub blok reklamowy nie jest częścią playlisty.
Transmisja na żywo z dynamicznym wstawianiem reklam: w przypadku reklamy wstawianej przed filmem zwraca wartość 0. W przypadku reklam midroll zwraca identyfikator przerwy. Zwraca -2, jeśli nie można określić indeksu pod (błąd wewnętrzny).
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]