public void Record(SkeletonFrame frame) { if (writer == null) { throw new Exception("This recorder is stopped"); } if (skeletonRecorder == null) { throw new Exception("Skeleton recording is not actived on this KinectRecorder"); } skeletonRecorder.Record(frame); Flush(); }