public void Stop() { if (_dxPlay != null) { _dxPlay.Stop(); _dxPlay.Dispose(); _buffer.Dispose(); } _dxPlay = null; _buffer = null; }
public void Start() { if (_dxPlay == null) { _buffer = new FrameBuffer(_FPS, _frameWidth, _frameHeight); _dxPlay = new DxPlay(_buffer, _fileNaming.Generate(".wmv"), _compression, _frameWidth, _frameHeight, _FPS); _dxPlay.Start(); } }
public VideoSaver(IFileNamingTemplate fileNaming, CaptureOptions.VideoSize frameSize, CaptureOptions.VideoFPS FPS, CaptureOptions.VideoCompression compression) { KeyValuePair <int, int> size = CaptureOptions.ToValue(frameSize); _fileNaming = fileNaming; _frameWidth = size.Key; _frameHeight = size.Value; _FPS = CaptureOptions.ToValue(FPS); _compression = compression; _buffer = null; _dxPlay = null; }