|
Agora Java API Reference for Android
|
Public Member Functions | |
| abstract int | getMaxMetadataSize () |
| Occurs when the SDK requests the maximum size of the metadata. More... | |
| abstract byte[] | onReadyToSendMetadata (long timeStampMs, int sourceType) |
| Occurs when the SDK is ready to send metadata. More... | |
| abstract void | onMetadataReceived (AgoraMetadata metadata) |
| Occurs when the local user receives the metadata. More... | |
Static Public Attributes | |
| static final int | UNKNOWN_METADATA = -1 |
| static final int | VIDEO_METADATA = 0 |
The definition of IMetadataObserver.
|
abstract |
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.
|
abstract |
Occurs when the SDK is ready to send metadata.
This callback is triggered when the SDK is ready to send metadata.
getMaxMetadataSize callback.| timeStampMs | The timestamp. |
| sourceType | Video data type. See VideoSourceType. |
|
abstract |
Occurs when the local user receives the metadata.
| metadata | The metadata received. See AgoraMetadata. |
|
static |
(Not supported) The metadata type is unknown.
|
static |
The metadata type is video.
1.8.18