Agora Java API Reference for Android
Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.video.AgoraMetadata Class Reference

Public Member Functions

 AgoraMetadata (String channelId, int uid, byte[] data, long timeStampMs)
 

Public Attributes

String channelId
 
int uid
 
byte[] data
 
long timeStampMs
 

Detailed Description

The AgoraMetadata class.

Member Data Documentation

◆ channelId

String io.agora.rtc2.video.AgoraMetadata.channelId

The channel ID of the metadata.

◆ uid

int io.agora.rtc2.video.AgoraMetadata.uid

The User ID that sent the metadata.

  • For the receiver: The user ID of the user who sent the metadata.
  • For the sender: Ignore this value.

◆ data

byte [] io.agora.rtc2.video.AgoraMetadata.data

The buffer address of the sent or received metadata.

◆ timeStampMs

long io.agora.rtc2.video.AgoraMetadata.timeStampMs

The NTP timestamp (ms) when the metadata is sent.

Note
If the receiver is audience, the receiver cannot get the NTP timestamp (ms).