Beispiel #1
0
 public void Stop()
 {
     if (_capturer == null)
     {
         throw new InvalidOperationException("CaptureNotStarted");
     }
     _capturer.Stop();
     _capturer.Dispose(); _capturer = null;
 }
Beispiel #2
0
 public void Start(ITransport transport)
 {
     if (_capturer != null)
     {
         throw new InvalidOperationException("CaptureAlreadyStarted");
     }
     _capturer = new KinectCapturer(new RawAudioTransport(transport), new RawVideoTransport(transport));
     _capturer.Initialize();
     _capturer.Start();
 }