文档中心
互动直播 (Legacy)
API 参考
AgoraMediaMetadataDelegate Protocol Reference
Objective-C API Reference for iOS/macOS
AgoraMediaMetadataDelegate Protocol Reference
Conforms to |
NSObject |
Declared in |
AgoraMediaMetadata.h |
Overview
AgoraMediaMetadataDelegate 定义
Note: 该类包含的回调需要在引擎的关键线程中实现。因此我们建议你在关键线程中避免耗时操作。
- (void)receiveMetadata:(NSData *_Nonnull)data fromUser:(NSInteger)uid atTimestamp:(NSTimeInterval)timestamp
Parameters
data |
接收到的附属信息 |
uid |
发送该附属信息的远端用户的 ID |
timestamp |
接收到的附属信息的时间戳,单位为毫秒 |
Discussion
当接收到远端用户发送的媒体附属信息 时,SDK 会触发该回调。
Declared In
AgoraMediaMetadata.h