The MediaRecorder.resume()
method (part of the MediaStream Recording API) is used to resume media recording when it has been previously paused.
When the resume()
method is invoked, the browser queues a task that runs the following steps:
- If
MediaRecorder.state
is "inactive", raise a DOMInvalidState
error and terminate these steps. IfMediaRecorder.state
is not "inactive", continue to the next step. - Set
MediaRecorder.state
to "recording". - Continue gathering data into the current
Blob
. - Raise a
resume
event.