stop

fun stop()(source)

The stop() method of the MediaRecorder interface is used to stop media capture.

MDN Reference