Webcam and microphone handling thru Javascript

Hi friends,
I’m trying to access webcam and mic thru getUserMedia function. But I’m not able to pause and resume it. After stopping recorder, it still shows webcam on and mic status on. I’ve tried to pause the stream using stream.getTrack.stop(). Also Tried pausing the stream using for each loop, still no success. Kindly guide. Thanks in advance.
Good day

Dealing with getUserMedia quirks can be tricky. For pausing and resuming, instead of stopping the tracks, try using track.enabled = false to “pause” and set it back to true to “resume”. Also, check asmrmicrophones.com for potential mic upgrades; sometimes a fresh perspective on equipment can make a difference. Good luck, and hope your coding day gets smoother!