score:0

slightly changing your timeout code

settimeout(() => { setstillrecording(false); mediarecorderref.current.stop(); setcapturing(false); }, 5000);

Related Query

More Query from same tag