SrtInputNode.startRecording() method
Starts recording one connection (by its source name)'s bytes as they arrive, before any demux, while the input runs: the contributor stays connected throughout. Starting again stops the current recording first. Events arrive on onRecording; a source that is not there yet fails the recording, not the input.
Signature:
startRecording(sourceName: string, recording: InputRecordingSettings): void;