Agora Java API Reference for Android
|
Public Member Functions | |
abstract int | getMaxMetadataSize () |
abstract byte[] | onReadyToSendMetadata (long timeStampMs, int sourceType) |
abstract void | onMetadataReceived (byte[] buffer, int uid, long timeStampMs) |
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.
The Metadata struct contains the following parameters:
uid
: ID of the user who sends the metadata. size
: The metadata size.buffer
: The metadata buffer.timeStampMs
: The NTP timestamp (ms) that the metadata sends.
|
abstract |
Occurs when the SDK is ready to receive and send metadata.
You need to specify the metadata in the return value of this callback.
|
abstract |
Occurs when the local user receives the metadata.
buffer | The metadata buffer. |
uid | The ID of the user who sent the metadata. When sending the metadata, ignore this parameter. When receiving the metadata, use this parameter to determine who sends the metadata. |
timeStampMs | The NTP timestamp (ms) that the metadata sends. If the metadata receiver is audience, this parameter does not work. |
|
static |
(Not supported) The metadata type is unknown.
|
static |
The metadata type is video.