Esempio n. 1
0
        public void Stop()
        {
            foreach (var client in clients.Keys)
            {
                client.Dispose();
            }
            clients = new ConcurrentDictionary <TcpClient, NewFrameEventHandler>();

            source.Stop();

            listener.Stop();
            listen = false;
        }
Esempio n. 2
0
 /// <summary>
 /// Disables the input of the webcam
 /// </summary>
 public static void DisableWebcam()
 {
     try
     {
         source.Stop();
         processor.Complete();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }
Esempio n. 3
0
        public void Stop()
        {
            foreach (var client in clients.Keys)
            {
                client.Dispose();
            }
            clients = new ConcurrentDictionary <TcpClient, bool>();

            source.Stop();
            source.NewFrame -= SendNewFrameToClients;

            listener.Stop();
            listen = false;
        }