Endpoints for starting and stopping the recording.