با مجموعهها، منظم بمانید
ذخیره و دستهبندی محتوا براساس اولویتهای شما.
این صفحه نحوه ارسال پیام در سمت سرویس گیرنده را از یک افزونه در حال اجرا در iframe پانل جانبی به یک افزونه در حال اجرا در iframe مرحله اصلی توضیح می دهد. پیام فریم به فریم فقط در سمت مشتری انجام می شود، بنابراین تحویل پیام تقریباً آنی است.
طول payload باید با محدودیت اندازه مشخص شده مطابقت داشته باشد.
برای دریافت پیام، افزونه باید در پاسخ به تماس frameToFrameMessage مشترک شود. نمونه کد زیر نحوه اشتراک در یک فراخوان frameToFrameMessage را نشان می دهد:
پیام های فریم به فریم ارسال شده توسط یک شرکت کننده خاص فقط توسط همان شرکت کننده قابل مشاهده است. برای ارسال پیام یا وضعیت به سایر شرکتکنندگان، نحوه اشتراکگذاری وضعیت افزودنی را بیاموزید.
تحویل پیام فقط یک بار انجام می شود. برای دریافت پیامها، پنل دریافت باید باز باشد و برنامه باید قبل از ارسال پیام در تماس پاسخگو باشد.
تاریخ آخرین بهروزرسانی 2025-01-09 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-01-09 بهوقت ساعت هماهنگ جهانی."],[[["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"]]