RecordEngine
Extends:
Direct Subclass:
Indirect Subclass:
Base class for recorder backends.
Constructor Summary
Public Constructor | ||
public |
constructor(player: Player, options: Object) Creates an instance of this class. |
Member Summary
Public Members | ||
public |
recordedData: * |
Method Summary
Public Methods | ||
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 Methods | ||
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 Constructors
Public Members
public recordedData: * source
Public Methods
public addFileInfo(fileObj: Blob | File) source
Add filename and timestamp to recorded file object.
Params:
Name | Type | Attribute | Description |
fileObj | Blob | File | Blob or File object to modify. |
public saveAs(name: Object): void source
Show save as dialog in browser so the user can store the recorded media locally.
Params:
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'. |
Return:
void |
Example:
// save recorded video file as 'foo.webm'
player.record().saveAs({'video': 'foo'});
Private Methods
private onStopRecording(data: blob) source
Invoked when recording is stopped and resulting stream is available.
Params:
Name | Type | Attribute | Description |
data | blob | Reference to the recorded |