MeetMediaApiClient.createMediaLayout मेथड का सिग्नेचर
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
नया मीडिया लेआउट बनाता है. सिर्फ़ इस फ़ंक्शन से बनाए गए मीडिया लेआउट लागू किए जा सकते हैं. ऐसा न करने पर, 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."]]