kenzie
kenzie

Reputation: 217

Removing microphone indicator in Google Chrome

I am currently working with webRTC and therefore use the getUserMedia() function. When doing this a red icon appears inside the tab-header. Is there a way to remove this symbol? I set my microphone stream to undefined after a certain task, but the symbol is still shown there.

Upvotes: 3

Views: 2408

Answers (1)

wpp
wpp

Reputation: 7303

You have to stop the MediaStream (MediaStreamTracks) you've acquired with getUserMedia

stream.getTracks().forEach(track => track.stop());
stream.stop(); // deprecated in FFox 

Upvotes: 6

Related Questions