use-media-recorder icon indicating copy to clipboard operation
use-media-recorder copied to clipboard

onStop callback never called

Open reyesr opened this issue 1 year ago • 1 comments

The onStop callback is never called, so there is no way to get the last audio chunk and it's unfortunately lost. This is because the event listener for handleStop() is removed in stopRecording(), preventing it to be called by the media recorder.

[line 254] mediaRecorder.current.removeEventListener('stop', handleStop);

[verified on Chrome 116 and FF 116]

reyesr avatar Aug 22 '23 07:08 reyesr