方法簽名 MeetMediaApiClient.applyLayout
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
套用指定的媒體版面配置要求。您必須完成這項設定,才能要求影片串流。只接受使用 createMediaLayout
函式建立的媒體版面配置。
簽名
applyLayout(requests: MediaLayoutRequest[]): Promise<MediaApiResponseStatus>;
詳細資料
參數
傳回
Promise<MediaApiResponseStatus>
在要求接受後解析的承諾。注意:請求的承諾解決並不會表示已套用版面配置。這表示要求已接受,您可能需要稍等片刻,這些版面配置才能套用。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],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."]]