קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
AdPodInfo
classpublic
כיתה שמייצגת אובייקט מידע של רצף מודעות במהלך הטמעת מודעות דינמיות.
Methods
getAdPosition
הפונקציה getAdPosition() מחזירה מספר
החזרות
number
getMaxDuration
הפונקציה getMaxDuration() מחזירה מספר
החזרות
number
getPodIndex
הפונקציה getPodIndex() מחזירה מספר
הפונקציה מחזירה את האינדקס של רצף המודעות.
DAI VOD: במודעת Preroll, הערך מוחזר כ-0. במודעות Midroll, הפונקציה מחזירה את הערכים 1, 2,...,N.
במודעת פוסט-רול, הפונקציה מחזירה את הערך -1. ערך ברירת המחדל הוא 0 אם המודעה הזו לא היא חלק מקבוצת מודעות, או אם קבוצת המודעות הזו לא היא חלק מפלייליסט.
שידור חי עם מודעות דינמיות: במודעות לפני הסרטון (pre-roll), הפונקציה מחזירה 0. במודעות Midroll, הפונקציה מחזירה את מזהה ההפסקה. הפונקציה מחזירה -2 אם לא ניתן לקבוע את אינדקס ה-pod (שגיאה פנימית).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-26 (שעון 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"]]