Wocart

@wocart/storefront v3.1.0


@wocart/storefront / review-media / VoiceRecorder

Interface: VoiceRecorder

Properties

state

readonly state: "idle" | "recording" | "stopped"

Methods

cancel()

cancel(): void

Stops and throws the recording away.

Returns

void


start()

start(): Promise<void>

Asks for the microphone and starts. Rejects when it is refused or unavailable.

Returns

Promise<void>


stop()

stop(): Promise<RecordedVoice>

Stops and gives the recording.

Returns

Promise<RecordedVoice>