Is there a way to start and stop a recording automatically (using a code/function) and saving to a predetermined file?
See:
as Ethan says this worked for me. Note that port 4557 is not correct for the latestr system. Use the code here.