Example #1
0
 // 拒绝视频呼叫邀请
 void btn_refuse_Click(object sender, EventArgs e)
 {
     //发送视频呼叫回复指令,dwErrcode=100104
     AnyChatCoreSDK.VideoCallControl(AnyChatCoreSDK.BRAC_VIDEOCALL_EVENT_REPLY, ConversationMode.SuserId, AC_ERROR_VIDEOCALL_REJECT, 0, 0, "");
     ConversationMode = null;
     InitFaceAfterEndCall(Properties.Resources._5, "已经拒绝会话...");
 }
Example #2
0
 //取消呼叫
 private void CanCall()
 {
     //发送视频呼叫回复指令,dwErrcode=100101
     AnyChatCoreSDK.VideoCallControl(AnyChatCoreSDK.BRAC_VIDEOCALL_EVENT_REPLY, ConversationMode.TuserId, AC_ERROR_VIDEOCALL_CANCEL, 0, 0, "");
     ConversationMode = null;
     InitFaceAfterEndCall(Properties.Resources._20, "已经取消呼叫");
 }
Example #3
0
        //双击视频呼叫
        void user_DoubleClick(object sender, EventArgs e)
        {
            PictureBox user    = sender as PictureBox;
            UserInfo   mode    = user.Tag as UserInfo;
            int        tUserId = mode.Id;

            if (tUserId != m_UserId)
            {
                //发送视频呼叫,最后两个参数为自定义参数
                AnyChatCoreSDK.VideoCallControl(AnyChatCoreSDK.BRAC_VIDEOCALL_EVENT_REQUEST, tUserId, 0, 0, 0, m_UserName);
                intCallTimer = 10;
                ShowCallMessage(Properties.Resources._23, "正在发起呼叫请求...");
                timer_call.Start();
            }
        }
Example #4
0
 //发送视频呼叫结束指令,挂断会话
 private void btn_hungUp_Click(object sender, EventArgs e)
 {
     //发送视频呼叫回复指令,dwErrcode=100104
     AnyChatCoreSDK.VideoCallControl(AnyChatCoreSDK.BRAC_VIDEOCALL_EVENT_FINISH, getOtherInSession(), AC_ERROR_VIDEOCALL_REJECT, 0, 0, "");
 }
Example #5
0
 //接受视频呼叫邀请
 void btn_accepted_Click(object sender, EventArgs e)
 {
     //发送视频呼叫回复指令,dwErrcode=0
     AnyChatCoreSDK.VideoCallControl(AnyChatCoreSDK.BRAC_VIDEOCALL_EVENT_REPLY, ConversationMode.SuserId, 0, 0, 0, "");
 }