WebAudio: How to deactivate microphone

Viewed 1085

WebAudio allows to access a microphone via navigator.getUserMedia(). When calling this, Browsers show a recoding sign (red dot in Chrome and Edge) that indicates that the microphone is in use. This works fine, but I would like to be able to deactivate the microphone and then this red dot should also disappear. I thougth calling webcontext.close() would also deactivate that red dot sign, but it doesnt, at least in Chrome, Firefox and Edge.

How do I deactivate a microphone in a way that also browsers recording signs disappear?

1 Answers
Related