mozmorris / react-webcam

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

Web cam is not releasing after navigating to another screen 2 form screen 1 in react #372

Open kodali444 opened 1 year ago

kodali444 commented 1 year ago

Please follow the general troubleshooting steps first:

I'm checking application in the local system. This is working fine in 'https' protocol except following issue.

Bug reports:

Hi Team, I'm using react-webcam,react-mic in my project. In first component I'm using these 2 modules. these are working fine. So after checking cam, and mic functionality, I'm using props.history.push() to go to 2nd screen. In that screen I'm getting "This Tab is using your Camera or Michro-phone" . Can any one suggest how to release cam/mic when required in 2nd component.

To resolve this, in the 2nd component I used window.location.reload(). This is working fine in desktop, android devices. But in the iphone devices app is getting logout due to window.location.reload(). Any suggestions please, thank in advance

Features: