نظرة عامة على أحداث البث المباشر
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توفّر واجهة برمجة تطبيقات Pod Serving API إمكانية الوصول إلى مجموعات إعلانات الفيديو المتسلسلة التي تعمل بمعدل نقل بيانات تكيُّفي مُعدّة بطريقة يمكن دمجها مباشرةً في قائمة تشغيل وسائط HLS أو MPEG DASH الموجّهة للمستخدم.
إنّ واجهة برمجة التطبيقات هذه مخصّصة للناشرين المتقدمين وشركاء تقنية الفيديو.
ويتطلّب استخدام واجهة برمجة التطبيقات هذه على نطاق واسع تصميم وتنفيذ سير عمل متطوّر لعرض الوسائط خارج نطاق هذه المستندات.
المتطلبات الأساسية
قبل معالجة بث مباشر من خلال DAI Podserved API، عليك إنشاء
حدث بث مباشر
باستخدام واجهة مستخدم "مدير إعلانات Google" أو واجهة برمجة تطبيقات الأحداث المباشرة.
المكوّنات
يتكوّن أي تطبيق من ثلاثة مكوّنات من تنفيذ واجهة برمجة تطبيقات عرض
اللوحات: "مدير إعلانات Google"، ومشغّل فيديو للعميل، وخادم لمعالجة البيانات.

مدير الإعلانات
يُعد "مدير الإعلانات" مسؤولاً عن عرض الإعلانات للمستخدم، ويمكن إدارته إما من خلال حزمة تطوير البرامج (SDK) في "مدير الإعلانات" أو واجهة الويب الخاصة بها. تتحمل الخدمة
المسئوليات التالية:
- تلقي طلبات بث من مشغِّل الفيديو الخاص بالعميل، وإعلانات اتخاذ القرار،
وتقديم عمليات العرض التي تتطابق مع الملفات الشخصية لترميز المحتوى
- الاستجابة لطلبات الشرائح الإعلانية من مشغّل فيديو العميل،
وتقديم الجزء المناسب من مجموعة الإعلانات المتسلسلة للمستخدم المحدّد
- تلقي إشعارات التتبع ومعالجتها من مشغّل فيديو العميل
مشغّل فيديو العميل
مشغّل الفيديو الخاص بالعميل هو التطبيق أو موقع الويب الذي يستخدمه العملاء لتشغيل الفيديو الناتج. يتحمل اللاعب المسؤوليات التالية:
- إعداد مصدر بث من "مدير إعلانات Google" وتلقّي عنصر بث
يمثّل جلسة تشغيل واحدة لحدث بث مباشر معيّن.
- قد يؤدي طلب بيان البث من خادم معالجة البيان
إلى بدء التشغيل
- إجراء استطلاع دوري للبيانات الوصفية الخاصة بمجموعة الإعلانات المتسلسلة من "مدير الإعلانات" والتي تصف أحداث
الإعلانات المضمَّنة في الشرائح الإعلانية لمجموعة البث
- رصد أحداث البيانات الوصفية المحدّدة زمنيًا التي يطرحها المشغّل الذي يحتوي على أرقام تعريف وسائط
الإعلانات. وعند مصادفة هذه الأحداث، يعيد المشغّل توجيهها إلى "مدير الإعلانات" للتحقّق من وقوع أحداث الإعلانات بنجاح.
لمعرفة المزيد من المعلومات حول التنفيذ الصحيح لمشغّل الفيديو الخاص بالعميل، راجِع دليل عرض الإعلانات المتسلسلة الخاصة بنظامك الأساسي:
وبالنسبة إلى عمليات التنفيذ المخصّصة، يُرجى الاطّلاع على دليل عملاء عرض الإعلانات المتسلسلة لواجهة برمجة تطبيقات DAI.
خادم معالجة البيان
خادم معالجة البيان هو الخادم المسؤول عن استضافة
بيان البث المقدَّم إلى مشغّل فيديو العميل. تقع على الخادم
المسؤوليات التالية:
- التعامل مع إرسال البيان إلى مشغّل الفيديو الخاص بالعميل
- طلب نموذج فترة من "مدير الإعلانات" (لمجموعات بث MPEG DASH فقط)
لملئه بشرائح الإعلانات
- إدراج عناوين URL لشرائح الإعلان المستضافة في "مدير إعلانات Google" في بيان بث الفيديو
(بالنسبة إلى بروتوكول HLS) أو الفترة الزمنية للإعلان (لترميز MPEG DASH) أثناء الفواصل الإعلانية
- عرض ملف البيان المعدَّل لمشغّل فيديو العميل
لمعرفة المزيد من المعلومات حول تنفيذ خادم مُعالِج بيانات مخصّص، يُرجى الاطّلاع على
دليل
معالجة البيانات.
مسرد المصطلحات
- حدث البث المباشر: حدث يخزِّن بيانات إعداد مهمة للبث المباشر، مثل الملفات الشخصية للترميز. يتم إنشاء أحداث البث المباشر باستخدام "مدير الإعلانات".
- عنصر البث: هو عنصر يمثّل جلسة تشغيل واحدة لمادة عرض فيديو محدّدة. وتشمل السمات البارزة رقم تعريف مصدر البيانات
وعنوان URL للتحقق من الوسائط.
- مجموعة الإعلانات المتسلسلة: تجميع الفيديوهات الإعلانية المعروضة في فاصل إعلاني.
- شرائح الإعلان: ملفات شرائح الوسائط للفاصل الإعلاني
- البيانات الوصفية لمجموعة الإعلانات المتسلسلة: البيانات الوصفية للفاصل الإعلاني المستخدَم لعرض واجهة مستخدم الإعلان على العميل، مثل إخفاء أزرار البحث أثناء عرض الإعلان
- رقم تعريف وسائط الإعلانات: البيانات الوصفية التي تم ترميزها كعلامات ID3 ضمن ملفات الشرائح الإعلانية. وتُستخدَم هذه البيانات الوصفية لتحديد أوقات وقوع أحداث محدّدة مرتبطة بالإعلانات أثناء تشغيل الفيديو، مثل بدء تشغيل الإعلان أو منتصفه.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-01 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-01 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe Pod Serving API facilitates the integration of adaptive-bitrate video ad pods directly into HLS or MPEG DASH media playlists for advanced publishers and video technology partners.\u003c/p\u003e\n"],["\u003cp\u003eImplementing the Pod Serving API involves three core components: Google Ad Manager, which handles ad delivery and tracking; a client video player, which manages stream initialization and playback; and a manifest manipulation server, which modifies and serves the stream manifest.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API, a livestream event must be created via the Google Ad Manager UI or the live-event API, serving as a configuration resource for the livestream.\u003c/p\u003e\n"],["\u003cp\u003eThe client video player is responsible for initializing the stream, requesting the manifest, polling for ad pod metadata, and forwarding timed metadata events to Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThe manifest manipulation server handles manifest delivery, requests ad period templates, and inserts Ad Manager-hosted ad segment URLs or ad periods into the stream manifest during ad breaks.\u003c/p\u003e\n"]]],[],null,["# Overview for live streams\n\nThe Pod Serving API provides access to adaptive-bitrate video ad pods prepared\nin such a way that they can be stitched directly into a user-facing HLS or MPEG\nDASH media playlist.\n\nThis API is intended for advanced publishers and video technology partners.\nUsing this API at scale requires design and implementation of a sophisticated\nmedia serving workflow which is outside the scope of this documentation.\n\nPrerequisites\n-------------\n\nBefore processing a livestream through the DAI Podserving API, you\nwill need to create a\n[livestream event](/ad-manager/dynamic-ad-insertion/api/pod-serving/live/manipulator#livestreamevent)\nusing the Google Ad Manager UI, or the live-event API.\n\nComponents\n----------\n\nThere are three components that make up any implementation of the Pod Serving\nAPI: Google Ad Manager, a client video player, and a manifest manipulation\nserver.\n\n### Ad Manager\n\nAd Manager is responsible for delivering ads to the user and can be managed\nthrough either the Ad Manager SDK or its web interface. The service has these\nresponsibilities:\n\n- Receiving stream requests from the client video player, decisioning ads, and providing renditions to match your content encoding profiles\n- Responding to ad segment requests from the client video player and providing the appropriate portion of the ad pod for the given user\n- Receiving and processing tracking pings from the client video player\n\n### Client video player\n\nThe client video player is the app or website that clients use to play the\nresulting video stream. The player has these responsibilities:\n\n- Initializing a stream resource from Ad Manager and receiving a stream object that represents a single playback session of a specific livestream event.\n- Requesting a stream manifest from the manifest manipulation server, which starts playback\n- Periodically polling ad pod metadata from Ad Manager that describes the ad events embedded in the stream's ad segments\n- Listening for timed metadata events raised by the player that contain ad media IDs. Upon encountering these events, the player forwards them to Ad Manager to verify that ad events have successfully occurred.\n\nTo learn more about the proper implementation of the client video player, see\nthe pod serving guide for your platform:\n\n- [Android](/ad-manager/dynamic-ad-insertion/sdk/android?service=pod)\n- [HTML5](/ad-manager/dynamic-ad-insertion/sdk/html5?service=pod)\n- [iOS](/ad-manager/dynamic-ad-insertion/sdk/ios?service=pod)\n- [tvOS](/ad-manager/dynamic-ad-insertion/sdk/tvos?service=pod)\n\nFor custom implementations, see our [pod serving client guide for the DAI\nAPI](/ad-manager/dynamic-ad-insertion/api/pod-serving/live/client).\n\n### Manifest manipulation server\n\nThe manifest manipulation server is the server in charge of hosting the\nstream manifest provided to the client video player. The server has these\nresponsibilities:\n\n- Handling manifest delivery to the client video player\n- Requesting a period template from Ad Manager (for MPEG DASH streams only), to populate with ad segments.\n- Inserting Ad Manager-hosted ad segment URLs into the video stream manifest (for HLS) or ad period (for MPEG DASH) during ad breaks.\n- Serving the modified manifest to the client video player.\n\nTo learn more about implementing a custom manifest manipulator server, see the\n[manifest manipulation\nguide](/ad-manager/dynamic-ad-insertion/api/pod-serving/live/manipulator).\n\nGlossary\n--------\n\n- **Livestream event**: An event that stores important configuration data for livestream, such as encoding profiles. Livestream events are created using Ad Manager.\n- **Stream object**: An object that represents a single playback session of a specific video asset. Notable properties include the stream ID and the media verification URL.\n- **Ad pod**: Grouping of ad videos shown in an ad break\n- **Ad segments**: Media segment files for the ad break\n- **Ad pod metadata**: Metadata for the ad break used to render ad UI on the client; for example, hide seek buttons during ad\n- **Ad media ID**: Metadata encoded as ID3 tags within ad segment files. This metadata is used to identify when specific ad-related events have occurred during playback, such as ad start or midpoint."]]