Example #1
0
 public void DesactivarCam()
 {
     if (FuenteDeVideo.IsRunning)
     {
         FuenteDeVideo.SignalToStop();
         FuenteDeVideo.WaitForStop();
     }
 }
Example #2
0
        public int DesactivarActivarCam()
        {
            int accion = -1;

            if (FuenteDeVideo.IsRunning)
            {
                FuenteDeVideo.SignalToStop();
                FuenteDeVideo.WaitForStop();
                accion = 0;
            }
            else
            {
                FuenteDeVideo.Start();
                accion = 1;
            }

            return(accion);
        }