সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
AdPodInfo
ক্লাসপাবলিক
ডায়নামিক বিজ্ঞাপন সন্নিবেশের সময় একটি বিজ্ঞাপন পড তথ্য বস্তুর প্রতিনিধিত্বকারী একটি শ্রেণী৷
পদ্ধতি
অ্যাডপোজিশন পান
getAdPosition() নম্বর প্রদান করে
রিটার্নস
number
GetMaxDuration
getMaxDuration() নম্বর প্রদান করে
রিটার্নস
number
getPodIndex
getPodIndex() নম্বর প্রদান করে
বিজ্ঞাপন পডের সূচী প্রদান করে।
DAI VOD: একটি প্রিরোল পডের জন্য, 0 রিটার্ন করে। মিডরোলের জন্য, 1, 2,...,N প্রদান করে। একটি পোস্টরোল পডের জন্য, রিটার্ন -1. যদি এই বিজ্ঞাপনটি কোনো পডের অংশ না হয়, অথবা এই পডটি কোনো প্লেলিস্টের অংশ না হয় তাহলে ডিফল্ট 0.
DAI লাইভ স্ট্রিম: একটি প্রিরোল পডের জন্য, 0 প্রদান করে। মিডরোলগুলির জন্য, বিরতি আইডি প্রদান করে। পড সূচক নির্ধারণ করা না গেলে -2 রিটার্ন করে (অভ্যন্তরীণ ত্রুটি)।
[null,null,["2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["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"],null,[]]