The pause() method of the MediaRecorder interface is used to pause recording of media streams.
pause()
MDN Reference