@wocart/storefront / review-media / VoiceRecorder
Interface: VoiceRecorder
Properties
state
readonlystate:"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>