Hi,
I use react-recorder-redux (that uses react-recorder)
to record and use that for mic activity… (in a react component).
Anyway when I go on other page or back on unmount I kill all the tracks and call the stop
command on recorder.
All good except the top tab browser still has the red recording icon on.
Cheers,
Adrian
componentWillUnmount() {
this.props.recorderStop();
if (this.state.stream) {
this.state.stream.getTracks().forEach((track) => {
track.stop();
});
}
this.setState({
streamUrl: ‘’,
stream: ‘’,
});
this.videoElement.src = ‘’;
}