RecordRTCEngine
Extends:
Direct Subclass:
Engine used with the MRecordRTC class in the RecordRTC library.
Member Summary
Public Members | ||
public |
debug: * |
|
public |
engine: * |
|
public |
inputStream: * |
|
public |
mediaType: * |
|
public |
recordedData: * |
Method Summary
Public Methods | ||
public |
destroy() Destroy engine. |
|
public |
dispose() Remove any temporary data and references to streams. |
|
public |
pause() Pause recording. |
|
public |
resume() Resume recording. |
|
public |
Show save as dialog in browser so the user can store the recorded media locally. |
|
public |
Setup recording engine. |
|
public |
start() Start recording. |
|
public |
stop() Stop recording. |
Private Methods | ||
private |
onStopRecording(audioVideoURL: string, type: string) Invoked when recording is stopped and resulting stream is available. |
|
private |
onTimeStamp(current: float, all: array) Received new timestamp (when timeSlice option is enabled). |
Inherited Summary
From class RecordEngine | ||
public |
recordedData: * |
|
public |
addFileInfo(fileObj: Blob | File) Add filename and timestamp to recorded file object. |
|
public |
destroy() Destroy engine. |
|
public |
Show save as dialog in browser so the user can store the recorded media locally. |
|
private |
dispose() Remove any temporary data and references to streams. |
|
private |
onStopRecording(data: blob) Invoked when recording is stopped and resulting stream is available. |
Public Members
public debug: * source
public engine: * source
public inputStream: * source
public mediaType: * source
Public Methods
public dispose() source
Remove any temporary data and references to streams.
Override:
RecordEngine#disposepublic saveAs(name: object) source
Show save as dialog in browser so the user can store the recorded media locally.
Override:
RecordEngine#saveAsParams:
Name | Type | Attribute | Description |
name | object | Object with names for the particular blob(s) you want to save. File extensions are added automatically. For example: {'video': 'name-of-video-file'}. Supported keys are 'audio', 'video' and 'gif'. |
Example:
// save video file as 'foo.webm'
player.record().saveAs({'video': 'foo'});
public setup(stream: LocalMediaStream, mediaType: Object, debug: Boolean) source
Setup recording engine.
Private Methods
private onStopRecording(audioVideoURL: string, type: string) source
Invoked when recording is stopped and resulting stream is available.
Override:
RecordEngine#onStopRecordingParams:
Name | Type | Attribute | Description |
audioVideoURL | string | URI of the recorded Blob object, e.g. 'blob:http://localhost:8080/10100016-4248-9949-b0d6-0bb40db56eba' |
|
type | string | Media type, eg. 'video' or 'audio'. |
private onTimeStamp(current: float, all: array) source
Received new timestamp (when timeSlice option is enabled).
Params:
Name | Type | Attribute | Description |
current | float | Current timestamp. |
|
all | array | List of timestamps so far. |