Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Áp dụng các yêu cầu bố cục nội dung đa phương tiện đã cho. Bạn cần có quyền này để có thể yêu cầu luồng video. Chỉ chấp nhận bố cục nội dung nghe nhìn được tạo bằng hàm createMediaLayout.
Một lời hứa sẽ giải quyết khi yêu cầu được chấp nhận. LƯU Ý: Việc giải quyết lời hứa trên yêu cầu không có nghĩa là bố cục đã được áp dụng. Điều này có nghĩa là yêu cầu đã được chấp nhận và bạn có thể phải đợi một khoảng thời gian ngắn để các bố cục này được áp dụng.
[null,null,["Cập nhật lần gần đây nhất: 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."]]