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.
Giao diện cho MeetMediaApiClient. Lấy một cấu hình bắt buộc và cung cấp một tập hợp các đối tượng có thể đăng ký cho ứng dụng. Lấy MeetMediaClientRequiredConfiguration làm tham số hàm khởi tạo.
Á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.
Tạo bố cục nội dung nghe nhìn mới. Bạn chỉ có thể áp dụng 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 một 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 giữa mỗi luồng (cần được tạo cho mỗi luồng).
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# Interface MeetMediaApiClient\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\nInterface for the MeetMediaApiClient. Takes a required configuration and\nprovides a set of subscribables to the client. Takes a\n[`MeetMediaClientRequiredConfiguration`](/meet/media-api/reference/web/media_api_web.meetmediaclientrequiredconfiguration)\nas a constructor parameter.\n\nSignature\n---------\n\n interface MeetMediaApiClient\n\nMethod signatures\n-----------------\n\n| Name | Description |\n|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`applyLayout(requests)`](./media_api_web.meetmediaapiclient.applylayout.md) | Applies the given media layout requests. This is required to be able to request a video stream. Only accepts media layouts that have been created with the [`createMediaLayout`](/meet/media-api/reference/web/media_api_web.meetmediaapiclient.createmedialayout) function. |\n| [`createMediaLayout(canvasDimensions)`](./media_api_web.meetmediaapiclient.createmedialayout.md) | Creates a new media layout. Only media layouts that are created with this function can be applied. Otherwise, the [`applyLayout`](/meet/media-api/reference/web/media_api_web.meetmediaapiclient.applylayout) function will throw an error. Once the media layout has been created, you can construct a request and apply it with the [`applyLayout`](/meet/media-api/reference/web/media_api_web.meetmediaapiclient.applylayout) function. These media layout objects are meant to be reused (can be reassigned to a different request) but are distinct per stream (need to be created for each stream). |\n| [`joinMeeting(communicationProtocol)`](./media_api_web.meetmediaapiclient.joinmeeting.md) | Joins the meeting. |\n| [`leaveMeeting()`](./media_api_web.meetmediaapiclient.leavemeeting.md) | Leaves the meeting. |\n\nProperty signatures\n-------------------\n\n| Name | Description |\n|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [`mediaEntries`](./media_api_web.meetmediaapiclient.mediaentries.md) | The media entries in the meeting. Subscribable to changes in the media entry collection. |\n| [`meetStreamTracks`](./media_api_web.meetmediaapiclient.meetstreamtracks.md) | The meet stream tracks in the meeting. Subscribable to changes in the meet stream track collection. |\n| [`participants`](./media_api_web.meetmediaapiclient.participants.md) | The participants in the meeting. Subscribable to changes in the participant collection. |\n| [`presenter`](./media_api_web.meetmediaapiclient.presenter.md) | The presenter in the meeting. Subscribable to changes in the presenter. |\n| [`screenshare`](./media_api_web.meetmediaapiclient.screenshare.md) | The screenshare in the meeting. Subscribable to changes in the screenshare. |\n| [`sessionStatus`](./media_api_web.meetmediaapiclient.sessionstatus.md) | The status of the session. Subscribable to changes in the session status. |"]]