MediaRecorder interface of the MediaStream Recording API provides functionality to easily record media. It is created using the
Documentation MediaRecorder by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Returns the MIME type that was selected as the recording container for the
MediaRecorder object when it was created.
Returns the current state of the
MediaRecorder object (
Returns the stream that was passed into the constructor when the
MediaRecorder was created.
Pauses the recording of media.
Blob containing the saved data received thus far (or since the last time
requestData() was called. After calling this method, recording continues, but in a new
Resumes recording of media after having been paused.
Begins recording media; this method can optionally be passed a
timeslice argument with a value in milliseconds. If this is specified, the media will be captured in separate chunks of that duration, rather than the default behavior of recording the media in a single large chunk.
Stops recording, at which point a
dataavailable event containing the final
Blob of saved data is fired. No more recording occurs.