Recorder
Extends
- RecorderEvents.Pick<MediaRecorder,
| "state"
| "mimeType"
| "stream"
| "audioBitsPerSecond"
| "videoBitsPerSecond"
| "start"
| "stop"
| "requestData"
| "pause"
| "resume">
Properties
| Property | Modifier | Type | Description | Inherited 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 |
audioBitsPerSecond | readonly | number | The audioBitsPerSecond read-only property of the MediaRecorder interface returns the audio encoding bit rate in use. MDN Reference | Pick.audioBitsPerSecond |
mimeType | readonly | string | The 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 Reference | Pick.mimeType |
state | readonly | RecordingState | The state read-only property of the MediaRecorder interface returns the current state of the current MediaRecorder object. MDN Reference | Pick.state |
stream | readonly | MediaStream | The stream read-only property of the MediaRecorder interface returns the stream that was passed into the MediaRecorder() constructor when the MediaRecorder was created. MDN Reference | Pick.stream |
videoBitsPerSecond | readonly | number | The videoBitsPerSecond read-only property of the MediaRecorder interface returns the video encoding bit rate in use. MDN Reference | Pick.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.
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.
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.
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.
Parameters
| Parameter | Type |
|---|---|
timeslice? | number |
Returns
void
Inherited from
Pick.start
stop()
stop(): void;
The stop() method of the MediaRecorder interface is used to stop media capture.
Returns
void
Inherited from
Pick.stop