Based on the code you've posted, you never initialize your KinectRecorder
.
this.Recorder.Record(skeletonFrame); // I get an error after the RGB camera view freezes
... would produce a null pointer, because Recorder
was never initialized. Unless you've left that part out of your code example here. You can do it at the time you declare it, or later if you prefer.
KienctRecorder Recorder = new KinectRecorder(options, stream);
options
need to be set up for your appropriate KinectRecordOptions
. stream
is your output Stream
.