// 비디오전송단추를 클릭한후의 처리... private void SetVideoChat() { if (!m_videoSenBtnState) { if (InitWPFMediaKit()) { lblWebCam2.Content = Main._UserInfo.Id + LabelContents.WEB_CAM_LBL; this.webCamImage.Visibility = Visibility.Hidden; StartVideoCapture(); this.messageEditBox.Focus(); this.buttonSendMyVideo.Content = ButtonContent.VIDEO_END_BUTTON; m_videoSenBtnState = true; } } else { lblWebCam2.Content = LabelContents.WEB_CAM_LBL; this.buttonSendMyVideo.Content = ButtonContent.VIDEO_SEND_BUTTON; webCamImage.Visibility = Visibility.Visible; if (disapthcerTimer != null) { disapthcerTimer.Stop(); } if (MyVideoCapElement.VideoCaptureDevice != null) { MyVideoCapElement.Stop(); MyVideoCapElement.VideoCaptureDevice = null; } m_videoSenBtnState = false; } }
// 폼클로즈시 마감처리를 진행한다. private void FinalProcess() { if (disapthcerTimer != null) { disapthcerTimer.Stop(); } if (dispatcherVideoTimer != null) { dispatcherVideoTimer.Stop(); } if (MyVideoCapElement.VideoCaptureDevice != null) { MyVideoCapElement.Stop(); MyVideoCapElement.VideoCaptureDevice = null; } // VoiceChat Stop m_bVoicePlayerFlag = false; Stop(); Main._ClientEngine.Send(NotifyType.Request_OutRoom, m_roomInfo); }