/// <summary>
        /// 自定义视频数据接口
        /// </summary>
        /// <param name="time">时间毫秒级</param>
        /// <param name="data">视频数据yuv420格式</param>
        /// <param name="size">data的数据长度 sizeof(char)</param>
        /// <param name="width">画面宽度</param>
        /// <param name="height">画面高度</param>
        /// <param name="info">扩展Json封装类</param>
        /// <returns> bool true 调用成功,false 调用失败</returns>
        public static bool CustomVideoData(ulong time, IntPtr data, uint size, uint width, uint height, NIMCustomVideoDataInfo info)
        {
            string jsonExtension = "";

            if (info != null)
            {
                jsonExtension = info.Serialize();
            }
            return(DeviceNativeMethods.nim_vchat_custom_video_data(time, data, size, width, height, jsonExtension));
        }
Пример #2
0
 /// <summary>
 /// 自定义视频数据接口
 /// </summary>
 /// <param name="time">时间毫秒级</param>
 /// <param name="data">视频数据yuv420格式</param>
 /// <param name="size">data的数据长度 sizeof(char)</param>
 /// <param name="width">画面宽度</param>
 /// <param name="height">画面高度</param>
 /// <returns></returns>
 public static bool CustomVideoData(ulong time, IntPtr data, uint size, uint width, uint height)
 {
     return(DeviceNativeMethods.nim_vchat_custom_video_data(time, data, size, width, height, ""));
 }