//public double[] PreivewWindowLoc() //{ // try // { // //ClsException.WriteToLogFile("PreivewWindowLoc called"); // double[] winXY = new double[2]; // winXY = capture.PreviewWidowTag(); // return winXY; // } // catch (Exception ex) // { // //MessageBox.Show("PreivewWindowLoc"+ex.Message); // return null; // } //} //public void ShowVideo() //{ // capture.showVideo(); //} //public void HideVideo() //{ // capture.hideVideo(); //} void Current_Exit(object sender, ExitEventArgs e) { try { if (capture != null) { capture.Stop(); capture.Dispose(); } if (netp2pDirectXVideoChannel != null) { netp2pDirectXVideoChannel = null; } if (httpDirectXVideoChannel != null) { httpDirectXVideoChannel = null; } VMuktiAPI.VMuktiHelper.UnRegisterEvent("SignOut"); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Current_Exit", "ctlUserVideo.xaml.cs"); } }
/// <summary> /// Stops the video capturing. /// </summary> public void StopVideoCapturing() { if (!capture.Stopped) capture.Stop(); }