You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** Usage: user can toggle pause/resume as much as they want. But once they press pause button, save button will appear and they can either save or discard it. Save button is implemented by handleSave function
The text was updated successfully, but these errors were encountered:
Hey @TyposBro - I believe doing something like this may solve your problem
useEffect(()=>{if(!recordingBlob)return;setBlob(recordingBlob)},[recordingBlob])consthandleSave=()=>{stopRecording();// you can directly call stopRecording from where you're calling handleSave};
Hi there.
I wanted to use this library's hooks but can't access to recordingBlob.
Hook usage
const {
startRecording,
stopRecording,
togglePauseResume,
recordingBlob,
isRecording,
isPaused,
recordingTime,
} = useAudioRecorder();
const handleSave = () => {
stopRecording();
setBlob(recordingBlob);
};
** Usage: user can toggle pause/resume as much as they want. But once they press pause button, save button will appear and they can either save or discard it. Save button is implemented by handleSave function
The text was updated successfully, but these errors were encountered: