#include <AgoraMediaBase.h>
◆ MAX_METADATA_SIZE_TYPE
Metadata size constants, in bytes.
| Enumerator |
|---|
| INVALID_METADATA_SIZE_IN_BYTE | -1: Invalid size.
|
| DEFAULT_METADATA_SIZE_IN_BYTE | 512: The default size.
|
| MAX_METADATA_SIZE_IN_BYTE | 1024: The maximum size.
|
◆ METADATA_TYPE
Metadata types. Only video metadata is supported.
| Enumerator |
|---|
| UNKNOWN_METADATA | -1: Unknown metadata.
|
| VIDEO_METADATA | 0: Video metadata.
|
◆ ~IMetadataObserver()
| virtual agora::rtc::IMetadataObserver::~IMetadataObserver |
( |
| ) |
|
|
inlinevirtual |
◆ getMaxMetadataSize()
| virtual int agora::rtc::IMetadataObserver::getMaxMetadataSize |
( |
| ) |
|
|
inlinevirtual |
Occurs when the SDK requests the maximum metadata buffer size.
- Returns
- The maximum size in bytes. Defaults to
512; must not exceed 1024.
◆ onMetadataReceived()
| virtual void agora::rtc::IMetadataObserver::onMetadataReceived |
( |
const Metadata & | metadata | ) |
|
|
pure virtual |
Occurs when video metadata is received from a remote user.
- Note
- Copy the buffer contents before using the metadata outside this callback.
- Parameters
-
| metadata | The received metadata. |
◆ onReadyToSendMetadata()
Occurs when the SDK is ready to send metadata. Write data into the buffer provided by the SDK and set the size.
- Note
- The size must not exceed the value returned by getMaxMetadataSize. Returning
false skips the metadata only; video transmission continues.
- Parameters
-
| [in,out] | metadata | The metadata to send. |
| source_type | The video source type: VIDEO_SOURCE_TYPE. |
- Returns
true to send the metadata; false to skip it.
The documentation for this class was generated from the following file: