Class yang mewakili objek info pod iklan selama penyisipan iklan dinamis.
Metode
getAdPosition
getAdPosition() menampilkan angka
Hasil
number
getMaxDuration
getMaxDuration() menampilkan angka
Hasil
number
getPodIndex
getPodIndex() menampilkan angka
Menampilkan indeks pod iklan.
DAI VOD: Untuk pod preroll, menampilkan 0. Untuk mid-roll, menampilkan 1, 2,...,N.
Untuk pod postroll, menampilkan -1. Setelan defaultnya adalah 0 jika iklan ini bukan bagian dari pod, atau pod ini bukan bagian dari playlist.
Live stream DAI: Untuk pod preroll, menampilkan 0. Untuk mid-roll, menampilkan ID jeda iklan. Menampilkan -2 jika indeks pod tidak dapat ditentukan (error internal).
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]