|
Agora Java API Reference for Android
|
#include <IAgoraRtcEngine.h>
Classes | |
| struct | Metadata |
| Media metadata. More... | |
Public Types | |
| enum | METADATA_TYPE { UNKNOWN_METADATA = -1, VIDEO_METADATA = 0 } |
| Metadata type of the observer. We only support video metadata for now. More... | |
| enum | MAX_METADATA_SIZE_TYPE { INVALID_METADATA_SIZE_IN_BYTE = -1, DEFAULT_METADATA_SIZE_IN_BYTE = 512, MAX_METADATA_SIZE_IN_BYTE = 1024 } |
Public Member Functions | |
| virtual int | getMaxMetadataSize () |
| Occurs when the SDK requests the maximum size of the metadata. More... | |
| virtual bool | onReadyToSendMetadata (Metadata &metadata, VIDEO_SOURCE_TYPE source_type)=0 |
| Occurs when the SDK is ready to send metadata. More... | |
| virtual void | onMetadataReceived (const Metadata &metadata)=0 |
| Occurs when the local user receives the metadata. More... | |
Definition of IMetadataObserver
Metadata type of the observer. We only support video metadata for now.
| Enumerator | |
|---|---|
| UNKNOWN_METADATA | -1: The type of metadata is unknown. |
| VIDEO_METADATA | 0: The type of metadata is video. |
The maximum metadata size.
|
virtual |
Occurs when the SDK requests the maximum size of the metadata.
After successfully complete the registration by calling registerMediaMetadataObserver, the SDK triggers this callback once every video frame is sent. You need to specify the maximum size of the metadata in the return value of this callback.
buffer of the metadata that you want to use. The highest value is 1024 bytes. Ensure that you set the return value.
|
pure virtual |
Occurs when the SDK is ready to send metadata.
This callback is triggered when the SDK is ready to send metadata.
getMaxMetadataSize callback.| source_type | Video data type. See VIDEO_SOURCE_TYPE. |
| metadata | The metadata that the user wants to send. See Metadata. |
true: Send the video frame.false: Do not send the video frame.
1.8.18