M-ZENHOM / React-Sound-Recorder

An audio recording helper for React. Provides a component to help with audio recording.
https://www.npmjs.com/package/react-sound-recorder
2 stars 0 forks source link

Microphone was never turned off after onRecordingComplete #1

Open rishabp-alokin opened 2 months ago

rishabp-alokin commented 2 months ago

after a record is complete the microphone usage was not turning off and it still shows as microphone is being using by the tab

image

we need a feature to turn this off

rishabp-alokin commented 2 months ago

could be great if was automatically doing that or a prop like if it want to turn off / not aft the end

rishabp-alokin commented 2 months ago

if (mediaStreamRef.current) { mediaStreamRef.current.getTracks().forEach(track => track.stop()); mediaStreamRef.current = null; }

something like this?