SyntaxFix
Write A Post
Hire A Developer
Questions
You need to stop all tracks (from webcam, microphone):
localStream.getTracks().forEach(track => track.stop());