Ejemplo n.º 1
0
 public bool SetCaptureSource(IVideoProvider cap)
 {
     if (CaptureProvider != null)
     {
         if (CaptureProvider.IsRunning)
         {
             CaptureProvider.StopCapture();
         }
         if (!cap.IsInit)
         {
             cap.InitDriver();
         }
         CaptureProvider = cap;
         return(CaptureProvider.StartCapture());
     }
     else
     {
         CaptureProvider = cap;
         return(true);
     }
 }