In reference to the button that sets isRecording = false, are you referring to the SDK's recording/playback demo application? This client application is just a demo made as a reference guide. Yes, isRecording is set to true to start a recording, and is set to false to stop a recording, but this does not need to happen through button clicks. It could be made 100% programmatic.
Furthermore, if the application is being recorded, the LCCS service will stop the recording and publish it to your WebDAV server when the recorded application stops. So, this should work. Are you sure your application is being recorded? And are you sure your application has stopped?