namespace Agora.Rtc
{
///
///
/// The metadata observer.
///
///
public abstract class IMetadataObserver
{
///
///
/// 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.
///
///
///
/// 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.
///
///
public virtual int GetMaxMetadataSize()
{
return 0;
}
///
///
/// Occurs when the SDK is ready to send metadata.
/// This Callback is triggered when the SDK is ready to send metadata.
///
///
/// Video data type. See VIDEO_SOURCE_TYPE .
///
/// The metadata the user wants to send. See Metadata .
///
///
/// true: Send it.false: Do not send it.
///
///
public virtual bool OnReadyToSendMetadata(ref Metadata metadata, VIDEO_SOURCE_TYPE source_type)
{
return false;
}
///
///
/// Occurs when the local user receives the metadata.
///
///
/// The metadata received, see Metadata .
///
public virtual void OnMetadataReceived(Metadata metadata)
{
}
}
}