Chữ ký phương thức MeetMediaApiClient.createMediaLayout
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.
Tạo bố cục nội dung nghe nhìn mới. Bạn chỉ có thể áp dụng các bố cục nội dung nghe nhìn được tạo bằng hàm này. Nếu không, hàm applyLayout sẽ gửi lỗi. Sau khi tạo bố cục nội dung nghe nhìn, bạn có thể tạo một yêu cầu và áp dụng yêu cầu đó bằng hàm applyLayout. Các đối tượng bố cục nội dung nghe nhìn này được dùng để sử dụng lại (có thể được chỉ định lại cho một yêu cầu khác) nhưng khác nhau theo từng luồng (cần được tạo cho từng luồng).
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# Method signature MeetMediaApiClient.createMediaLayout\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\nCreates a new media layout. Only media layouts that are created with this\nfunction can be applied. Otherwise, the\n[`applyLayout`](/meet/media-api/reference/web/media_api_web.meetmediaapiclient.applylayout)\nfunction will throw an error. Once the media layout has been created, you can\nconstruct a request and apply it with the\n[`applyLayout`](/meet/media-api/reference/web/media_api_web.meetmediaapiclient.applylayout)\nfunction. These media layout objects are meant to be reused (can be reassigned\nto a different request) but are distinct per stream (need to be created for\neach stream).\n\nSignature\n---------\n\n createMediaLayout(canvasDimensions: CanvasDimensions): MediaLayout;\n\nDetails\n-------\n\n| Optional | No |\n|----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|--------------------|---------------------------------------------------------|----------|-------------------------------------------------------|\n| `canvasDimensions` | [CanvasDimensions](./media_api_web.canvasdimensions.md) | No | The dimensions of the canvas to render the layout on. |\n\nReturns\n-------\n\n[MediaLayout](./media_api_web.medialayout.md)\n\nThe new media layout."]]