コード例 #1
0
        /// <summary>
        /// 回复收到的邀请
        /// </summary>
        /// <param name="session_id">会话id</param>
        /// <param name="channel_type">通道类型,暂时无效</param>
        /// <param name="accept">是否接受</param>
        /// <param name="info">接受时的发起信息扩展参数</param>
        /// <param name="AckResHandler">结果回调</param>
        public static void Ack(string session_id, int channel_type, bool accept, NIMRts.RtsStartInfo info, NIMRts.AckResHandler AckResHandler)
        {
            var ptr  = NimUtility.DelegateConverter.ConvertToIntPtr(AckResHandler);
            var json = info.Serialize();

            nim_rts_ack(session_id, channel_type, accept, json, _AckResCb, ptr);
        }
コード例 #2
0
ファイル: NIMRtsAPI.cs プロジェクト: zanjs/Wawaji
        /// <summary>
        /// 创建rts会话
        /// </summary>
        /// <param name="channelType">通道类型 如要tcp+音视频,则channel_type=kNIMRtsChannelTypeTcp|kNIMRtsChannelTypeVchat,同时整个SDK只允许一个音视频通道存在(包括vchat)</param>
        /// <param name="uid">对方帐号</param>
        /// <param name="info">发起扩展参数</param>
        /// <param name="startResHandler">结果回调</param>
        public static void Start(NIMRtsChannelType channelType, string uid, NIMRts.RtsStartInfo info, NIMRts.StartResHandler startResHandler)
        {
            var ptr  = NimUtility.DelegateConverter.ConvertToIntPtr(startResHandler);
            var json = info.Serialize();

            NIMRts.RtsNativeMethods.nim_rts_start((int)channelType, uid, json, StartResCb, ptr);
        }
コード例 #3
0
        /// <summary>
        /// 创建rts会话
        /// </summary>
        /// <param name="channel_type">通道类型 如要tcp+音视频,则channel_type=kNIMRtsChannelTypeTcp|kNIMRtsChannelTypeVchat,同时整个SDK只允许一个音视频通道存在(包括vchat)</param>
        /// <param name="uid">对方帐号</param>
        /// <param name="info">发起扩展参数</param>
        /// <param name="StartResHandler">结果回调</param>
        public static void Start(int channel_type, string uid, NIMRts.RtsStartInfo info, NIMRts.StartResHandler StartResHandler)
        {
            var ptr  = NimUtility.DelegateConverter.ConvertToIntPtr(StartResHandler);
            var json = info.Serialize();

            nim_rts_start(channel_type, uid, json, _StartResCb, ptr);
        }
コード例 #4
0
ファイル: NIMRtsAPI.cs プロジェクト: zanjs/Wawaji
        /// <summary>
        /// 回复收到的邀请
        /// </summary>
        /// <param name="sessionId">会话id</param>
        /// <param name="channelType">通道类型,暂时无效</param>
        /// <param name="accept">是否接受</param>
        /// <param name="info">接受时的发起信息扩展参数</param>
        /// <param name="ackResHandler">结果回调</param>
        public static void Ack(string sessionId, NIMRtsChannelType channelType, bool accept, NIMRts.RtsStartInfo info, NIMRts.AckResHandler ackResHandler)
        {
            var ptr  = NimUtility.DelegateConverter.ConvertToIntPtr(ackResHandler);
            var json = info == null ? null: info.Serialize();

            NIMRts.RtsNativeMethods.nim_rts_ack(sessionId, (int)channelType, accept, json, AckResCb, ptr);
        }