تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تسمح حزمة تطوير البرامج لإعلانات الوسائط التفاعلية بتنسيق HTML5 بإعداد سياق التشغيل المستمر
طلب الإعلانات. تشير رسالة الأشكال البيانية
setContinuousPlayback()
إلى SDK ما إذا كان المشغل ينوي تشغيل مقاطع فيديو المحتوى بشكل مستمر
الواحد تلو الآخر، كما هو الحال في البث التلفزيوني. عند الضبط على true، يتم عرض الإعلانات من
تمثّل هذه الطلبات الطلبات التي صنّفها خادم الإعلانات كمحتوى مناسب للتشغيل المستمر. لا
استدعاء هذه الطريقة
ترك الإعداد غير معروف.
يوضح النموذج التالي كيفية ضبط التشغيل المستمر في طلب إعلان.
أوجه الاختلاف بين "التشغيل المستمر" و"التشغيل التلقائي للإعلانات"
تسمح أيضًا حزمة تطوير البرامج لإعلانات الوسائط التفاعلية بتنسيق HTML5 بتحديد ما إذا كان المشغّل سيبدأ في التشغيل أم لا
تلقائيًا أو الانتظار حتى يبدأ المستخدم إجراء التشغيل. يتم ذلك باستخدام
setAdWillAutoPlay()
. عند ضبط هذه القيمة على true، تكون الإعلانات المعروضة هي تلك التي حدّدتها الإعلانات.
الخادم كمناسب لبيئة التشغيل التلقائي.
يوضح هذا الجدول بالتفصيل الحالات التي يمكن فيها طلب إعلانات التشغيل المستمر والتشغيل التلقائي، استنادًا إلى محتوى الفيديو
التي يتم إقران الإعلانات بها.
محتوى الفيديو
معلمة setContinuousPlayback()
معلمة setAdWillAutoPlay()
يشير هذا المصطلح إلى فيديو من محتوى واحد يتم تشغيله عند تفاعل المستخدم.
false
false
يشير هذا المصطلح إلى فيديو من محتوى واحد يتم تشغيله تلقائيًا.
false
true
قائمة تشغيل فيديو يتم فيها تشغيل أول فيديو عند تفاعل المستخدم، ولكنها تعمل تلقائيًا
متابعة الفيديوهات
true
false
قائمة تشغيل فيديوهات تشغِّل الفيديو الأول تلقائيًا وتشغِّل الفيديوهات التالية تلقائيًا
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe IMA SDK for HTML5 allows publishers to set the continuous play context for ad requests, signaling whether content videos will play continuously, influencing the ads served.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetContinuousPlayback()\u003c/code\u003e method indicates if videos will autoplay sequentially, similar to a TV broadcast, while \u003ccode\u003esetAdWillAutoPlay()\u003c/code\u003e specifies if ads themselves will autoplay.\u003c/p\u003e\n"],["\u003cp\u003eThis distinction is crucial as continuous play impacts ad selection from the ad server, ensuring ads suitable for continuous content are delivered, while autoplay dictates ad playback behavior.\u003c/p\u003e\n"],["\u003cp\u003ePublishers should align these settings with their content strategy: single videos with user interaction require neither, single autoplaying videos need \u003ccode\u003esetAdWillAutoPlay(true)\u003c/code\u003e, playlists with autoplay after the first video use \u003ccode\u003esetContinuousPlayback(true)\u003c/code\u003e, and fully autoplaying playlists utilize both.\u003c/p\u003e\n"]]],[],null,["# Report continuous play\n\nThe IMA SDK for HTML5 allows for setting the continuous play context for an ads request. The `\n`[setContinuousPlayback()](/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#setContinuousPlayback) method 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 calling this method 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```gdscript\nvar adsRequest = new google.ima.AdsRequest();\nadsRequest.adTagUrl(adTagUrl);\nadsRequest.setContinuousPlayback(true);\nadsLoader.requestAds(adsRequest);\n```\n\nHow continuous play differs from ad auto-play\n---------------------------------------------\n\nThe IMA SDK for HTML5 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`[setAdWillAutoPlay()](/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#setAdWillAutoPlay) method. 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 | Parameter for setContinuousPlayback() | Parameter for setAdWillAutoPlay() |\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` |"]]