Stay organized with collections
Save and categorize content based on your preferences.
meet::MediaStatsConfiguration
#include <media_stats_resource.h>
The configuration for the media stats upload.
Summary
This will be sent by the server to the client when the data channel is opened. The client is then expected to start uploading media stats at the specified interval.
This configuration is immutable and a singleton and will only be sent once when the data channel is opened.
[null,null,["Last updated 2025-04-09 UTC."],[],[],null,["# meet::MediaStatsConfiguration Struct Reference\n\nmeet::MediaStatsConfiguration\n=============================\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\n\n`#include \u003cmedia_stats_resource.h\u003e`\n\nThe configuration for the media stats upload.\n\nSummary\n-------\n\nThis will be sent by the server to the client when the data channel is opened. The client is then expected to start uploading media stats at the specified interval.\n\nThis configuration is immutable and a singleton and will only be sent once when the data channel is opened.\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|\n| [allowlist](#structmeet_1_1_media_stats_configuration_1a2822eace643bbd4b3ffdedf4ca521863) | `absl::flat_hash_map\u003c std::string, absl::flat_hash_set\u003c std::string \u003e \u003e` A map of allowlisted `RTCStats` sections. |\n| [upload_interval_seconds](#structmeet_1_1_media_stats_configuration_1a702b20c0084e19a42c5024e5ece2c5d5)` = 0` | `int32_t` The interval between each upload of media stats. |\n\nPublic attributes\n-----------------\n\n### allowlist\n\n```c++\nabsl::flat_hash_map\u003c std::string, absl::flat_hash_set\u003c std::string \u003e \u003e meet::MediaStatsConfiguration::allowlist\n``` \nA map of allowlisted `RTCStats` sections.\n\nThe key is the section type, and the value is a vector of the names of data that are allowlisted for that section.\n\nAllowlisted sections and section data are expected to be uploaded by the client. Other data will be ignored by the server and can be safely omitted.\n\n\n**See also:**\n[WebRTC Stats](https://w3c.github.io/webrtc-pc/#mandatory-to-implement-stats) \n\n### upload_interval_seconds\n\n```c++\nint32_t meet::MediaStatsConfiguration::upload_interval_seconds = 0\n``` \nThe interval between each upload of media stats.\n\nIf this is zero, the client should not upload any media stats."]]