Để kết nối với Meet Media API, ứng dụng của bạn phải sử dụng OAuth để tạo mã thông báo truy cập. Để tìm hiểu thêm về cách truy cập vào API của Google bằng OAuth, hãy xem bài viết Sử dụng OAuth 2.0 để truy cập vào API của Google.
Khi tạo ứng dụng web, bạn có thể tạo mã thông báo OAuth bằng quy trình cấp ngầm ẩn. Mẫu TypeScript này sử dụng quy trình này để tạo mã thông báo OAuth.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-02-24 UTC."],[[["This page provides instructions for setting up and running a sample application using the TypeScript reference client implementation for the Google Meet Media API."],["The sample requires prerequisites such as Bazel, Webpack, Node.js, Yarn, `gcloud` CLI, a Google Cloud project, and a Google Workspace account with Google Meet enabled."],["OAuth tokens must be generated using the implicit grant flow; the OAuth 2.0 Playground is incompatible with the Meet Media API, as the tokens cannot be associated with a Google Cloud Project."],["Due to CORS limitations, the sample application must be deployed to a service like Google App Engine, and `localhost` will not work."],["The setup involves building the sample with `yarn` and `webpack`, deploying it via `gcloud app deploy`, creating OAuth 2.0 credentials, and then joining a meeting and observing the audio/video streams."]]],[]]