Skip to main content

Recorder

Extends

- RecorderEvents.Pick<MediaRecorder,
| "state"
| "mimeType"
| "stream"
| "audioBitsPerSecond"
| "videoBitsPerSecond"
| "start"
| "stop"
| "requestData"
| "pause"
| "resume">

Properties

PropertyModifierTypeDescriptionInherited from
onDataAvailable?public(data) => void-RecorderEvents.onDataAvailable
onPause?public() => void-RecorderEvents.onPause
onStart?public() => void-RecorderEvents.onStart
onStop?public() => void-RecorderEvents.onStop
onResume?public() => void-RecorderEvents.onResume
onError?public() => void-RecorderEvents.onError
audioBitsPerSecondreadonlynumberThe audioBitsPerSecond read-only property of the MediaRecorder interface returns the audio encoding bit rate in use. MDN ReferencePick.audioBitsPerSecond
mimeTypereadonlystringThe mimeType read-only property of the MediaRecorder interface returns the MIME media type that was specified when creating the MediaRecorder object, or, if none was specified, which was chosen by the browser. This is the file format of the file that would result from writing all of the recorded data to disk. MDN ReferencePick.mimeType
statereadonlyRecordingStateThe state read-only property of the MediaRecorder interface returns the current state of the current MediaRecorder object. MDN ReferencePick.state
streamreadonlyMediaStreamThe stream read-only property of the MediaRecorder interface returns the stream that was passed into the MediaRecorder() constructor when the MediaRecorder was created. MDN ReferencePick.stream
videoBitsPerSecondreadonlynumberThe videoBitsPerSecond read-only property of the MediaRecorder interface returns the video encoding bit rate in use. MDN ReferencePick.videoBitsPerSecond

Methods

clean()

clean(): void;

Returns

void


pause()

pause(): void;

The pause() method of the MediaRecorder interface is used to pause recording of media streams.

MDN Reference

Returns

void

Inherited from

Pick.pause

requestData()

requestData(): void;

The requestData() method of the MediaRecorder interface is used to raise a dataavailable event containing a Blob object of the captured media as it was when the method was called. This can then be grabbed and manipulated as you wish.

MDN Reference

Returns

void

Inherited from

Pick.requestData

resume()

resume(): void;

The resume() method of the MediaRecorder interface is used to resume media recording when it has been previously paused.

MDN Reference

Returns

void

Inherited from

Pick.resume

start()

start(timeslice?): void;

The start() method of the MediaRecorder interface begins recording media into one or more Blob objects.

MDN Reference

Parameters

ParameterType
timeslice?number

Returns

void

Inherited from

Pick.start

stop()

stop(): void;

The stop() method of the MediaRecorder interface is used to stop media capture.

MDN Reference

Returns

void

Inherited from

Pick.stop