示例#1
0
 public static extern void nim_rts_create_conf([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringMarshaler))] string name,
                                               [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringMarshaler))] string custom_info,
                                               [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringMarshaler))] string json_extension,
                                               NimRtsCreateCbFunc cb,
                                               IntPtr user_data);
示例#2
0
        /// <summary>
        /// 创建一个多人数据通道房间(后续需要主动调用加入接口进入房间)
        /// </summary>
        /// <param name="name">房间名</param>
        /// <param name="custom_info">自定义的房间信息(加入房间的时候会返回)</param>
        /// <param name="cb"></param>
        public static void CreateConference(string name, string custom_info, NimRtsCreateCbFunc cb)
        {
            var ptr = DelegateConverter.ConvertToIntPtr(cb);

            RtsNativeMethods.nim_rts_create_conf(name, custom_info, null, CreateRtsConfCallback, ptr);
        }