새 미디어 레이아웃을 만듭니다. 이 함수로 만든 미디어 레이아웃만 적용할 수 있습니다. 그렇지 않으면 applyLayout 함수가 오류를 발생시킵니다. 미디어 레이아웃이 생성되면 요청을 구성하고 applyLayout 함수로 적용할 수 있습니다. 이러한 미디어 레이아웃 객체는 재사용 (다른 요청에 재할당 가능)을 위해 만들어졌지만 스트림마다 다릅니다 (각 스트림에 대해 만들어야 함).
[null,null,["최종 업데이트: 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."]]