state

external val state: RecordingState(source)

The state read-only property of the MediaRecorder interface returns the current state of the current MediaRecorder object.

MDN Reference