Recorder

Represents an audio and video recorder. Add the following line to your scenario code to use the class: require(Modules.Recorder);

View as Markdown

Methods

addEventListener

Adds a handler for the specified RecorderEvents event. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.

1addEventListener(event: RecorderEvents | T, callback: (event: _RecorderEvents[T]) => any): void

Parameters

event
RecorderEvents | TRequired
callback
(event: _RecorderEvents[T]) => anyRequired

id

Returns the recorder’s id.

1id(): string

mute

Whether to mute whole record without detaching media sources from it.

1mute(doMute: boolean): void

Parameters

doMute
booleanRequired

removeEventListener

Removes a handler for the specified RecorderEvents event.

1removeEventListener(event: RecorderEvents | T, callback?: (event: _RecorderEvents[T]) => any): void

Parameters

event
RecorderEvents | TRequired
callback
(event: _RecorderEvents[T]) => any

stop

Stops recording and triggers the RecorderEvents.Stopped event.

1stop(): void