Metadata

  • Unity

更新时间不可用

媒体附属信息。

C#
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;
        }
    }

属性

参数名描述
channelId

频道名称。

uid

用户 ID。

  • 对于接收者:发送该 Metadata 的远端用户的 ID。
  • 对于发送者:请忽略。
size

接收到的或发送的 Metadata 的缓存大小。

buffer

接收到的 Metadata 的缓存地址。

timeStampMs

发送 Metadata 的时间戳,单位为毫秒。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?