stopRecording

suspend fun stopRecording()

Asks the server to stop recording. RoomEventListener.onRecordingStopped is the confirmation; the call returning is not.

A stop the server refuses, such as one with no recording running or one still starting, throws code 4012 (STOP_RECORDING_FAILED) carrying the server's reason, and the same error reaches RoomEventListener.onError.