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 (see snippet at bottom).
All good except the top tab browser still has the red recording icon on.
Cheers,
Adrian
PS:
componentWillUnmount() {
this.props.recorderStop();
if (this.state.stream) {
this.state.stream.getTracks().forEach((track) => {
track.stop();
});
}
this.setState({
streamUrl: '',
stream: '',
});
this.videoElement.src = '';
}
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/a1d5034a-269f-4ddc-9729-8541d0b158f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.