stopRecording

Stops recording and finalizes the output file.

Throws

If recording has not started.