Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
agora::rtc::IMetadataObserver::Metadata Struct Reference

`#include <IAgoraRtcEngine.h>`

## Public Member Functions
| Metadata ()

## Public Attributes
const char * | channelId
unsigned int | uid
unsigned int | size
unsigned char * | buffer
long long | timeStampMs

## Detailed Description

Metadata.

## Constructor & Destructor Documentation

## ◆ Metadata()

agora::rtc::IMetadataObserver::Metadata::Metadata | ( |  | ) |
| inline

## Member Data Documentation

## ◆ channelId

const char* agora::rtc::IMetadataObserver::Metadata::channelId

The channel ID of the `metadata`.

## ◆ uid

unsigned int agora::rtc::IMetadataObserver::Metadata::uid

The User ID that sent the metadata.

- For the receiver: The user ID of the user who sent the `metadata`.
- For the sender: Ignore this value.

## ◆ size

unsigned int agora::rtc::IMetadataObserver::Metadata::size

The buffer size of the sent or received `metadata`.

## ◆ buffer

unsigned char* agora::rtc::IMetadataObserver::Metadata::buffer

The buffer address of the sent or received `metadata`.

## ◆ timeStampMs

long long agora::rtc::IMetadataObserver::Metadata::timeStampMs

The NTP timestamp (ms) when the metadata is sent.

Note
  If the receiver is audience, the receiver cannot get the NTP timestamp (ms).