קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחילה את הבקשות הנתונות של פריסות המדיה. הדבר נדרש כדי שתוכלו לבקש שידור וידאו. הפונקציה מקבלת רק פריסות של מדיה שנוצרו באמצעות הפונקציה createMediaLayout.
הבטחה שמתמלאת כשהבקשה מתקבלת. הערה: הפתרון של ההבטחה בבקשה לא מעיד על כך שהפריסה הוחלתה. המשמעות היא שהבקשה אושרה, וייתכן שתצטרכו להמתין קצת עד שהפריסות האלה יחולו.
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Method signature MeetMediaApiClient.applyLayout\n\n| **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. \n|\n| **To use the Meet Media API to access real-time media from a conference, the Google Cloud project, OAuth principal, and all participants in the conference must be enrolled in the Developer Preview Program.**\n\nApplies the given media layout requests. This is required to be able to request\na video stream. Only accepts media layouts that have been created with the\n[`createMediaLayout`](/meet/media-api/reference/web/media_api_web.meetmediaapiclient.createmedialayout)\nfunction.\n\nSignature\n---------\n\n applyLayout(requests: MediaLayoutRequest[]): Promise\u003cMediaApiResponseStatus\u003e;\n\nDetails\n-------\n\n| Optional | No |\n|----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|------------|-----------------------------------------------------------------|----------|------------------------|\n| `requests` | [MediaLayoutRequest](./media_api_web.medialayoutrequest.md)`[]` | No | The requests to apply. |\n\nReturns\n-------\n\n`Promise\u003cMediaApiResponseStatus\u003e`\n\nA promise that resolves when the request has been accepted. NOTE: The promise\nresolving on the request does not mean the layout has been applied. It means\nthat the request has been accepted and you may need to wait a short amount of\ntime for these layouts to be applied."]]