public interface IMetadataObserver
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN_METADATA
(Not supported) The metadata type is unknown.
|
static int |
VIDEO_METADATA
The metadata type is video.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxMetadataSize()
Occurs when the SDK requests the maximum size of the metadata.
|
void |
onMetadataReceived(byte[] buffer,
int uid,
long timeStampMs)
Occurs when the local user receives the metadata.
|
byte[] |
onReadyToSendMetadata(long timeStampMs,
int sourceType)
Occurs when the SDK is ready to receive and send metadata.
|
static final int UNKNOWN_METADATA
static final int VIDEO_METADATA
int getMaxMetadataSize()
byte[] onReadyToSendMetadata(long timeStampMs,
int sourceType)
timeStampMs - The NTP timestamp (ms) that the metadata sends.sourceType - VideoSourceTypevoid onMetadataReceived(byte[] buffer,
int uid,
long timeStampMs)
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.