LamejsEngine
Extends:
Audio-only engine for the lamejs library.
Constructor Summary
Public Constructor | ||
public |
constructor(player: Player, options: Object) Creates an instance of this class. |
Member Summary
Public Members | ||
public |
audioContext: * |
|
public |
|
|
public |
Mime-type for audio output. |
|
public |
Path to |
|
public |
Specifies the bitrate in kbps. |
|
public |
config: {"debug": *, "sampleRate": *, "bitRate": *} |
|
public |
Enables console logging for debugging purposes. |
|
public |
engine: * |
|
public |
inputStream: * |
|
public |
mediaType: * |
|
public |
processor: * |
|
public |
Specifies the sample rate to encode at. |
Method Summary
Public Methods | ||
public |
Setup recording engine. |
|
public |
start() Start recording. |
|
public |
stop() Stop recording. |
Private Methods | ||
private |
onAudioProcess(ev: Object) Continuous encoding of audio data. |
|
private |
onWorkerMessage(ev: Object) Received a message from the worker. |
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 Constructors
public constructor(player: Player, options: Object) source
Creates an instance of this class.
Override:
RecordEngine#constructorParams:
Name | Type | Attribute | Description |
player | Player | The |
|
options | Object |
|
The key/value store of player options. |
Public Members
public audioContext: * source
public audioSourceNode: * source
public config: {"debug": *, "sampleRate": *, "bitRate": *} source
public engine: * source
public inputStream: * source
public mediaType: * source
public processor: * source
Public Methods
public setup(stream: LocalMediaStream, mediaType: Object, debug: Boolean) source
Setup recording engine.