Beispiel #1
0
        private void VideoForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.timer1.Stop();

            StopSend();
            StringBuilder strFriendID = new StringBuilder(this.friendID);

            StopReceive(strFriendID);
            StopAudioCapture();
            StopVideoCapture();

            if (ChatClient.Login._UserInfo.Kind == (int)ChatEngine.UserKind.ServiceWoman)
            {
                ChatClient.Login._UserInfo.nUserState = 0;
                ChatClient.Login._ClientEngine.Send(ChatEngine.NotifyType.Request_UserState, ChatClient.Login._UserInfo);
            }

            _newChatRoom.SendMessage(_newChatRoom.m_strVideoChatEnd);
            _newChatRoom.videoForm = null;
        }