My Screen Recorder Pro can be controlled using the command line.
The command line functions can stop and start recording as needed from your application. More information about the command line controls are available here:
https://www.deskshare.com/help/msrpro/CommandLineParameters.aspx