Metadata

Media metadata.

public class Metadata
    {
        public string channelId;
        public uint uid;
        public uint size;
        public IntPtr buffer;
        public long timeStampMs;

        public Metadata()
        {
            this.channelId = "";
            this.uid = 0;
            this.size = 0;
            this.buffer = IntPtr.Zero;
            this.timeStampMs = 0;
        }

        public Metadata(string channelId, uint uid, uint size, IntPtr buffer, long timeStampMs)
        {
            this.channelId = channelId;
            this.uid = uid;
            this.size = size;
            this.buffer = buffer;
            this.timeStampMs = timeStampMs;
        }
    }

Properties

channelId
Channel name.
uid
User ID.
  • For receiver: ID of the remote user who sent this Metadata.
  • For sender: Ignore this.
size
Buffer size of the received or sent Metadata.
buffer
Buffer address of the received Metadata.
timeStampMs
Timestamp when the Metadata is sent, in milliseconds.