Ejemplo n.º 1
0
 public void StopSending()
 {
     timer.Stop();
     if (mousekeyTimer != null)
     {
         mousekeyTimer.Stop();
     }
     rtpClient.Dispose();
 }
Ejemplo n.º 2
0
        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;
        }