लाइव स्ट्रीम से जुड़ी खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पॉड सर्विंग एपीआई, अडैप्टिव-बिटरेट वीडियो विज्ञापनों के पॉड को इस तरह से तैयार करता है कि उन्हें सीधे उपयोगकर्ता के इस्तेमाल की जाने वाली HLS या MPEGDASH मीडिया प्लेलिस्ट में जोड़ा जा सके.
यह एपीआई, बेहतर पब्लिशर और वीडियो टेक्नोलॉजी पार्टनर के लिए है.
बड़े पैमाने पर इस एपीआई का इस्तेमाल करने के लिए, एक बेहतरीन मीडिया सेवा देने वाले वर्कफ़्लो को डिज़ाइन और लागू करना ज़रूरी है, जो इस दस्तावेज़ के दायरे से बाहर है.
ज़रूरी शर्तें
DAI PodServices एपीआई की मदद से लाइव स्ट्रीम प्रोसेस करने से पहले, आपको Google Ad Manager यूज़र इंटरफ़ेस (यूआई) या लाइव इवेंट एपीआई का इस्तेमाल करके, लाइव स्ट्रीम इवेंट बनाना होगा.
घटक
पॉड सर्विंग एपीआई लागू करने के लिए, तीन कॉम्पोनेंट इस्तेमाल होते हैं: Google Ad Manager, क्लाइंट वीडियो प्लेयर, और मेनिफ़ेस्ट में बदलाव करने वाला सर्वर.

विज्ञापन मैनेजर
Ad Manager, उपयोगकर्ता को विज्ञापन दिखाता है. इसे Ad Manager SDK टूल या इसके वेब इंटरफ़ेस से मैनेज किया जा सकता है. सेवा की ये ज़िम्मेदारियां हैं:
- क्लाइंट वीडियो प्लेयर से स्ट्रीम के लिए अनुरोध पाना, विज्ञापन पर फ़ैसले लेना, और कॉन्टेंट को कोड में बदलने वाली अपनी प्रोफ़ाइलों से मैच करने के लिए रेंडरिंग उपलब्ध कराना
- क्लाइंट वीडियो प्लेयर से, विज्ञापन सेगमेंट के अनुरोधों का जवाब देना और
किसी उपयोगकर्ता के लिए विज्ञापन पॉड का सही हिस्सा उपलब्ध कराना
- क्लाइंट वीडियो प्लेयर से ट्रैकिंग पिंग पाना और प्रोसेस करना
क्लाइंट वीडियो प्लेयर
क्लाइंट वीडियो प्लेयर एक ऐसा ऐप्लिकेशन या वेबसाइट है जिसका इस्तेमाल क्लाइंट, नतीजे में दिखने वाली वीडियो स्ट्रीम
चलाने के लिए करता है. खिलाड़ी की ये ज़िम्मेदारियां हैं:
- Ad Manager से स्ट्रीम संसाधन शुरू करना और ऐसा स्ट्रीम ऑब्जेक्ट पाना जो किसी खास लाइव स्ट्रीम इवेंट के एक ही प्लेबैक सेशन को दिखाता है.
- मेनिफ़ेस्ट में बदलाव करने वाले सर्वर से स्ट्रीम मेनिफ़ेस्ट का अनुरोध करना,
जिससे प्लेबैक शुरू होता है
- Ad Manager से समय-समय पर पोल कराने वाले विज्ञापनों के पॉड का मेटाडेटा. इस मेटाडेटा में स्ट्रीम के विज्ञापन सेगमेंट में एम्बेड किए गए विज्ञापन इवेंट
की जानकारी होती है
- विज्ञापन मीडिया आईडी वाले प्लेयर की तरफ़ से इकट्ठा किए गए समय के मेटाडेटा इवेंट सुनना. इन इवेंट का सामना होने पर, प्लेयर उन्हें Ad Manager पर भेज देता है, ताकि इस बात की पुष्टि की जा सके कि विज्ञापन इवेंट सही तरीके से हुए हैं.
क्लाइंट वीडियो प्लेयर को सही तरीके से लागू करने के बारे में ज़्यादा जानने के लिए, अपने प्लैटफ़ॉर्म की पॉड दिखाने वाली गाइड देखें:
अपनी पसंद के हिसाब से लागू करने के बारे में जानने के लिए, डीएआई एपीआई के लिए पॉड सर्विंग क्लाइंट गाइड देखें.
मेनिफ़ेस्ट में बदलाव करने वाला सर्वर
मेनिफ़ेस्ट मैनिफ़ेस्टेशन सर्वर, क्लाइंट वीडियो प्लेयर को दिए गए स्ट्रीम मेनिफ़ेस्ट
को होस्ट करने वाला सर्वर है. सर्वर की ये
ज़िम्मेदारियां हैं:
- क्लाइंट वीडियो प्लेयर पर मेनिफ़ेस्ट डिलीवरी मैनेज करना
- विज्ञापन सेगमेंट में अपने-आप जानकारी भरने के लिए, Ad Manager (सिर्फ़ MPEGDASH स्ट्रीम के लिए) से पीरियड टेंप्लेट का अनुरोध करना.
- विज्ञापन के लिए ब्रेक के दौरान, वीडियो स्ट्रीम मेनिफ़ेस्ट में Ad Manager के होस्ट किए गए विज्ञापन सेगमेंट के यूआरएल
(HLS के लिए) या विज्ञापन की अवधि (MPEGDASH के लिए) में डालना.
- क्लाइंट वीडियो प्लेयर पर बदला गया मेनिफ़ेस्ट दिखाया जा रहा है.
कस्टम मेनिफ़ेस्ट मैनिफ़ेस्ट सर्वर लागू करने के बारे में ज़्यादा जानने के लिए, मेनिफ़ेस्ट में बदलाव करने से जुड़ी गाइड देखें.
शब्दावली
- लाइवस्ट्रीम इवेंट: ऐसा इवेंट जिसमें लाइव स्ट्रीम के लिए ज़रूरी कॉन्फ़िगरेशन डेटा स्टोर होता है. जैसे, डेटा को कोड में बदलने वाली प्रोफ़ाइल. लाइव स्ट्रीम इवेंट, Ad Manager का इस्तेमाल करके बनाए जाते हैं.
- स्ट्रीम ऑब्जेक्ट: यह ऑब्जेक्ट, किसी खास वीडियो एसेट के एक ही प्लेबैक सेशन को दिखाता है. प्रमुख प्रॉपर्टी में स्ट्रीम आईडी और
मीडिया वेरिफ़िकेशन यूआरएल शामिल होते हैं.
- विज्ञापन पॉड: विज्ञापन के लिए ब्रेक में दिखाए जाने वाले वीडियो का ग्रुप
- विज्ञापन सेगमेंट: विज्ञापन के लिए ब्रेक के लिए मीडिया सेगमेंट फ़ाइलें
- विज्ञापन पॉड मेटाडेटा: विज्ञापन के लिए ब्रेक का मेटाडेटा, जिसका इस्तेमाल क्लाइंट पर विज्ञापन के यूज़र इंटरफ़ेस (यूआई) को रेंडर करने के लिए किया जाता है. उदाहरण के लिए, विज्ञापन के दौरान सीक बटन छिपाना
- विज्ञापन मीडिया आईडी: विज्ञापन सेगमेंट फ़ाइलों में मेटाडेटा को ID3 टैग के तौर पर कोड में बदला गया है. इस मेटाडेटा का इस्तेमाल यह पता करने के लिए किया जाता है कि वीडियो चलाने के दौरान, विज्ञापन से जुड़े खास इवेंट कब हुए. जैसे, विज्ञापन शुरू होना या वीडियो के बीच में.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-01 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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-08-01 (UTC) को अपडेट किया गया."],[[["\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."]]