Ejemplo n.º 1
0
 void init()
 {
     queue       = new ConcurrentQueue <Bitmap>();
     videoWriter = new VideoFileWriter();
     TotalFrame  = 0;
     Status      = RecoderStatus.Strat;
     stopSignal  = new ManualResetEvent(false);
     interval    = 1000 / frameRate;
 }
Ejemplo n.º 2
0
 public void Stop()
 {
     if (Status == RecoderStatus.Stop)
     {
         return;
     }
     stopSignal.Set();
     thread.Abort();
     thread.Join();
     stopSignal.Close();
     videoWriter.Close();
     Status = RecoderStatus.Stop;
 }