change -stopRecording to return the saved file path
if not defined APP_STORE_SAFE and DEBUG is 0, set APP_STORE_SAFE to 1
Merge remote-tracking branch 'origin/iss7998' into iss7998