Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Instance Methods | |
(NSInteger) | - metadataMaxSize |
(NSData *_Nullable) | - readyToSendMetadataAtTimestamp:sourceType: |
The definition of the AgoraMediaMetadataDataSource protocol.
|
required |
Occurs when the SDK requests the maximum size of the metadata.
After calling the AgoraRtcEngineKit.setMediaMetadataDataSource:withType: setMediaMetadataDataSource method, the SDK triggers this callback to query the maximum size of your metadata. You must specify the maximum size in the return value and then pass it to the SDK.
|
required |
Occurs when the SDK is ready to send metadata.
You need to specify the metadata in the return value of this method.
timestamp | The timestamp (ms) of the current metadata. |
uid
: ID of the user who sends the metadata.size
: The size of the sent metadata.buffer
: The sent metadata.timeStampMs
: The NTP timestamp (ms) when the metadata is sent.