Is there a way to hide/remove the Camera icon that appears in the address bar after we have stopped using it?
I am using OpenTok for Video Conferencing and using
OT.getUserMedia()
.then(options=>{
options.getTracks().forEach(track=>{
track.stop();
});
})
I have also tried the code below
$window.navigator.mediaDevices.getUserMedia({ audio: true, video: true })
.then(streams=> {
streams.getTracks().forEach(track=>{
track.stop();
});
})
But for some reason, the Camera icon does not disappear from the address bar, suggesting that recording is still taking place.