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.stateis "inactive", raise a DOMInvalidStateerror and terminate these steps. IfMediaRecorder.stateis not "inactive", continue to the next step. - Set
MediaRecorder.stateto "recording". - Continue gathering data into the current
Blob. - Raise a
resumeevent.