संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज पर, क्लाइंट साइड पर मैसेज भेजने का तरीका बताया गया है. यह तरीका, साइड-पैनल iframe में चल रहे ऐड-ऑन से, मुख्य चरण iframe में चल रहे ऐड-ऑन पर मैसेज भेजने के लिए इस्तेमाल किया जाता है. फ़्रेम-टू-फ़्रेम मैसेजिंग सिर्फ़ क्लाइंट साइड पर होती है. इसलिए, मैसेज की डिलीवरी तुरंत होती है.
कोई मैसेज भेजने के लिए:
साइड पैनल से मुख्य स्क्रीन पर जाने के लिए, notifyMainStage()
तरीका अपनाएं.
payload की लंबाई, तय की गई साइज़ सीमा के मुताबिक होनी चाहिए.
मैसेज पाने के लिए, ऐड-ऑन को frameToFrameMessage कॉलबैक की सदस्यता लेनी होगी. नीचे दिए गए कोड सैंपल में, frameToFrameMessage कॉलबैक की सदस्यता लेने का तरीका बताया गया है:
मीटिंग में हिस्सा लेने वाले किसी व्यक्ति के फ़्रेम-टू-फ़्रेम मैसेज, सिर्फ़ उस व्यक्ति को दिखते हैं. मीटिंग में हिस्सा लेने वाले अन्य लोगों को मैसेज भेजने या अपनी स्थिति बताने के लिए, ऐड-ऑन की स्थिति शेयर करने का तरीका जानें.
मैसेज की डिलीवरी सिर्फ़ एक बार की जाती है. मैसेज पाने के लिए, मैसेज पाने वाला पैनल खुला होना चाहिए. साथ ही, मैसेज भेजे जाने से पहले, ऐप्लिकेशन को कॉलबैक की सदस्यता लेनी होगी.
[[["समझने में आसान है","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"]],["आखिरी बार 2024-12-21 (UTC) को अपडेट किया गया."],[[["This page explains how Google Meet add-ons can send messages between the side panel and main stage iframes using client-side frame-to-frame messaging."],["Add-ons use `notifyMainStage()` and `notifySidePanel()` methods to send messages and subscribe to the `frameToFrameMessage` callback to receive them."],["Frame-to-frame messages are only visible to the sender and require the receiving panel to be open and subscribed to the callback for delivery."],["For sharing state with other participants, refer to the guide on add-on state collaboration."]]],["Add-ons in different iframes (side panel and main stage) can exchange messages client-side. The side panel sends messages to the main stage using `notifyMainStage()`, while the main stage uses `notifySidePanel()` to send messages to the side panel. To receive messages, add-ons must subscribe to the `frameToFrameMessage` callback. Messages are participant-specific and delivered once; the receiving panel must be open and subscribed. Payload size limitations apply. The Animation sample add-on demonstrates this functionality.\n"]]