Package io.agora.rtc2
Interface IMetadataObserver
public interface IMetadataObserver
The definition of IMetadataObserver.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int(Not supported) The metadata type is unknown.static final intThe metadata type is video. -
Method Summary
Modifier and TypeMethodDescriptionintvoidonMetadataReceived(AgoraMetadata metadata) byte[]onReadyToSendMetadata(long timeStampMs, int sourceType)
-
Field Details
-
UNKNOWN_METADATA
static final int UNKNOWN_METADATA(Not supported) The metadata type is unknown.- See Also:
-
VIDEO_METADATA
static final int VIDEO_METADATAThe metadata type is video.- See Also:
-
-
Method Details
-
getMaxMetadataSize
int getMaxMetadataSize()- Returns:
- The maximum size of the `buffer` of the metadata that you want to use. The highest value is 1024 bytes. Ensure that you set the return value.
-
onReadyToSendMetadata
byte[] onReadyToSendMetadata(long timeStampMs, int sourceType) - Parameters:
timeStampMs- The timestamp.sourceType- Video data type. See `VideoSourceType`.- Returns:
- The metadata that you want to send in the format of byte. Ensure that you set the return value.
-
onMetadataReceived
- Parameters:
metadata- The metadata received. See `AgoraMetadata`.
-