সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
iOS-এর জন্য IMA SDK বিজ্ঞাপনের অনুরোধের জন্য ক্রমাগত খেলার প্রসঙ্গ সেট করার অনুমতি দেয়। continuousPlayback প্রপার্টি SDK কে সূচিত করে যে প্লেয়ারটি টিভি সম্প্রচারের মতো একের পর এক কন্টেন্ট ভিডিও ক্রমাগত প্লে করতে চায় কিনা। true সেট করা হলে, অনুরোধ থেকে প্রত্যাবর্তন করা বিজ্ঞাপনগুলিকে বিজ্ঞাপন সার্ভার দ্বারা ক্রমাগত খেলার জন্য উপযুক্ত হিসাবে মনোনীত করা হয়। এই সম্পত্তির জন্য একটি মান নির্দিষ্ট না করা সেটিংটিকে অজানা হিসাবে ছেড়ে যায়। নিম্নলিখিত নমুনা দেখায় যে কীভাবে বিজ্ঞাপনের অনুরোধে একটানা প্লে সেট করতে হয়।
iOS-এর জন্য IMA SDK এছাড়াও প্লেয়ারটি স্বয়ংক্রিয়ভাবে বাজানো শুরু করবে নাকি ব্যবহারকারীর অ্যাকশন খেলা শুরু করার জন্য অপেক্ষা করবে তা সেট করার অনুমতি দেয়। এটি adWillAutoPlay প্রপার্টি ব্যবহার করে করা হয়। true সেট করা হলে, ফেরত দেওয়া বিজ্ঞাপনগুলি বিজ্ঞাপন সার্ভার দ্বারা স্বয়ংক্রিয়-প্লে পরিবেশের জন্য উপযুক্ত হিসাবে মনোনীত করা হয়৷
বিজ্ঞাপনগুলি যে ভিডিওর সাথে যুক্ত করা হয়েছে তার উপর ভিত্তি করে এই সারণীটি বিশদ বিবরণ দেয় যে কখন বিজ্ঞাপনগুলি ক্রমাগত প্লে এবং অটো-প্লে করার জন্য অনুরোধ করতে হবে৷
ভিডিও সামগ্রী
একটানা প্লেব্যাকের জন্য মান
adWillAutoPlay-এর মান
একটি একক বিষয়বস্তু ভিডিও যা ব্যবহারকারীর ইন্টারঅ্যাকশনের উপর চলে
false
false
একটি একক কন্টেন্ট ভিডিও যা অটোপ্লে হয়
false
true
একটি ভিডিও প্লেলিস্ট যা ব্যবহারকারীর মিথস্ক্রিয়ায় প্রথম ভিডিওটি চালায় কিন্তু নিম্নলিখিত ভিডিওগুলি অটোপ্লে করে৷
true
false
একটি ভিডিও প্লেলিস্ট যা প্রথম ভিডিও অটোপ্লে করে এবং নিম্নলিখিত ভিডিওগুলি অটোপ্লে করে৷
[null,null,["2025-08-01 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe IMA SDK for iOS allows you to specify whether your content videos will play continuously, influencing the types of ads returned by the ad server.\u003c/p\u003e\n"],["\u003cp\u003eSetting \u003ccode\u003econtinuousPlayback\u003c/code\u003e to \u003ccode\u003etrue\u003c/code\u003e signals that videos will play one after another, like a TV broadcast, and is suitable for video playlists with autoplay.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003econtinuousPlayback\u003c/code\u003e impacts ad selection, it does not affect ad playback; \u003ccode\u003eadWillAutoPlay\u003c/code\u003e controls whether ads start playing automatically.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eadWillAutoPlay\u003c/code\u003e set to \u003ccode\u003etrue\u003c/code\u003e when your single content video or video playlist starts playing automatically without user interaction.\u003c/p\u003e\n"],["\u003cp\u003eConsult the provided table to determine the appropriate settings for \u003ccode\u003econtinuousPlayback\u003c/code\u003e and \u003ccode\u003eadWillAutoPlay\u003c/code\u003e based on your specific video content behavior.\u003c/p\u003e\n"]]],[],null,["# Report continuous play\n\nThe IMA SDK for iOS allows for setting the continuous play context for an ads request. The `\n`[continuousPlayback](/interactive-media-ads/docs/sdks/ios/client-side/reference/Classes/IMAAdsRequest#continuousplayback) property notifies the SDK whether the player intends to continuously play the content videos one after another, similar to a TV broadcast. When set to `true`, the ads returned from the request are those designated by the ads server as suitable for continuous play. Not specifying a value for this property leaves the setting as unknown. **Note:** Changing this setting has no impact on ad playback.\nThe following sample demonstrates how to set continuous play in an ads request. \n\n### Objective-C\n\n```objective-c\nIMAAdsRequest *request = [[IMAAdsRequest alloc]\n initWithAdTagUrl:adTagUrl\n adDisplayContainer:[self createAdDisplayContainer]\n avPlayerVideoDisplay:[[IMAAVPlayerVideoDisplay alloc] initWithAVPlayer:self.contentPlayer]\n pictureInPictureProxy:self.pictureInPictureProxy\n userContext:nil];\n request.continuousPlayback = true;\n [self.adsLoader requestAdsWithRequest:request];\n```\n\n### Swift\n\n```swift\nlet request = IMAAdsRequest(\n adTagUrl: adTagUrl,\n adDisplayContainer: createAdDisplayContainer(),\n avPlayerVideoDisplay: IMAAVPlayerVideoDisplay(avPlayer: contentPlayer),\n pictureInPictureProxy: pictureInPictureProxy,\n userContext: nil)\nrequest.continuousPlayback = true;\nadsLoader!.requestAds(with: request)\n```\n\nHow continuous play differs from ad auto-play\n---------------------------------------------\n\nThe IMA SDK for iOS also allows for setting whether the player will start playing automatically or wait for user action to begin playing. This is done using the `\n`[adWillAutoPlay](/interactive-media-ads/docs/sdks/ios/client-side/reference/Classes/IMAAdsRequest#adwillautoplay) property. When set to `true`, the ads returned are those designated by the ads server as suitable for an auto-play environment.\n\n\nThis table details when to request ads for continuous play and auto-play, based on the video content\nthe ads are paired with.\n\n| Video Content | Value for continuousPlayback | Value for adWillAutoPlay |\n|------------------------------------------------------------------------------------------------------|------------------------------|--------------------------|\n| A single content video that plays upon user interaction | `false` | `false` |\n| A single content video that autoplays | `false` | `true` |\n| A video playlist that plays the first video upon user interaction but autoplays the following videos | `true` | `false` |\n| A video playlist that autoplays the first video and autoplays the following videos | `true` | `true` |"]]