Baseline Widely available
The pause()
method of the MediaRecorder
interface is used to pause recording of media streams.
When a MediaRecorder
object's pause()
method is called, the browser queues a task that runs the below steps:
MediaRecorder.state
is "inactive", raise a DOM InvalidState
error and terminate these steps. If not, continue to the next step.MediaRecorder.state
to "paused".Blob
, but keep it available so that recording can be resumed later on.pause
event.None.
Return valueNone (undefined
).
InvalidStateError
DOMException
Thrown if the MediaRecorder
is currently "inactive"
; you cannot pause the recording if the MediaRecorder
is not active. If you call pause()
while already paused, the method silently does nothing.
pause.onclick = () => {
mediaRecorder.pause();
console.log("recording paused");
};
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3