Public Member Functions | |
abstract int | getMaxMetadataSize () |
abstract byte[] | onReadyToSendMetadata (long timeStampMs) |
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 size of the sent or received metadata.buffer
: The sent or received metadata.timeStampMs
: The timestamp of the metadata. The SDK triggers this callback after you successfully call the registerMediaMetadataObserver
method. You need to specify the maximum size of the metadata in the return value of this callback.This callback is returned multiple times, and you can update the maximum metadata size in the new callbacks.
|
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.
getMaxMetadataSize
callback. timeStampMs | The timestamp (ms) of the current metadata. |
|
abstract |
Occurs when the local user receives the metadata.
buffer | The received metadata. |
uid | The ID of the user who sent the metadata. |
timeStampMs | The timestamp (ms) of the received metadata. |
|
static |
The metadata type is unknown.
|
static |
The metadata type is video.