mozmorris / react-webcam

Webcam component
https://codepen.io/mozmorris/pen/JLZdoP
MIT License
1.65k stars 281 forks source link

[Question] Camera status and LED is on in the browser tab even though the component is unmounted. #349

Closed haresh6x closed 2 years ago

haresh6x commented 2 years ago

I am using react-webcam with reference to this codepen source: https://codepen.io/mozmorris/pen/yLYKzyp?editors=0010

But when the component is unmounted, camera status and LED is still on until the tab is closed. I went through the documentation but couldn't find any reference for the same.

How do I fix it?

mozmorris commented 2 years ago

Does this example work? https://codepen.io/mozmorris/pen/PBezdq

haresh6x commented 2 years ago

Does this example work? https://codepen.io/mozmorris/pen/PBezdq

Thank you!