public void StopSending() { timer.Stop(); if (mousekeyTimer != null) { mousekeyTimer.Stop(); } rtpClient.Dispose(); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (IsHost == true) { foreach (IPAddress ip in requestedUsers) { udp.SendMessageTo(UDP.ExitCall, ip); } } if (audio.sourceStream != null) { audio.sourceStream.StopRecording(); } videoDevice.Stop(); rtpClient.Dispose(); _stack.Children.RemoveRange(0, _stack.Children.Count); mParent.videoConf = null; mParent.VideoConfB.IsEnabled = true; }