EdithProDOCS
SDK v1.0.5 ▾Dashboard
SDK/REFERENCE

Callbacks

Pass these with your configuration to react to what happens.

CallbackArgumentsWhen
onReadynoneinit() finished.
onOpennoneThe popup opened.
onClosenoneThe popup closed.
onRecordingCreatedrecordingrecord() created a recording.
onRecordingStartrecordingIdCapture started.
onPausedurationPaused, with seconds recorded so far.
onResumenoneResumed.
onStoprecordingId, durationStopped and saved.
onDeleterecordingIdStopped and discarded.
onCompleterecordingIdProcessing finished.
onErrorerrorSomething went wrong.
example
onStop: (recordingId, duration) => {  api.post('/messages', { type: 'video', recordingId, duration });},onError: (error) => toast.error(error.message),
Was this page helpful? @edithpro/sdk 1.0.5 · Edit this page