I am using recording.js. The functionality is working fine but after I stop recording the red icon still appears in chrome\'s tab(near title). Please suggest what to do. So
To remove red icon after using Recorder.js:
var audioStream;
var onSuccess = function(s) {
...
audioStream = s;
}
function stopRecording() {
...
audioStream.getTracks()[0].stop();
}
getTracks() returns only one element since you use only audio in your config.
I hope it will help someone.
You can end the stream directly using the stream object returned in the success handler to getUserMedia. Example
localMediaStream.stop()
It's a browser feature, not a site feature. It will be there until you close the tab, indicates that "This tab has access to or using microphone or webcam".
At the time of writing the answer there were no way to remove that icon. You may now can remove it after the recording has stopped. Check @akaravashkin 's answer, I haven't tested it.