-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera remains in use even after unmounting the FaceLiveness component. #6245
Comments
Hello, @rishabhgupta1234 and thank you for opening this issue. We'll investigate this further and reproduce on our side, but for further clarity are we talking about the webcam light that shows the camera is in use? Can you clarify what version and OS you're using as well? |
Hi @cwomack thanks for replying Please find the details below
|
@rishabhgupta1234 What are you rendering once the analysis is complete? It's the responsibility of the developer to render another screen using |
@dindjarinjs I'm rendering the Faceliveness component based on a toggle condition. After this step is completed, the video is not rendered in the DOM, but the webcam light remains on. |
@rishabhgupta1234, we've been unable to reproduce on our side. Do you have a sample repo you can share where this is easily reproducible? Or could you share more of the code related to the toggle condition for us to have a better idea of how to reproduce? Thanks. |
Thanks for replying @cwomack
Explanation: The app and face authentication are rendered in parallel, face authentication is rendered inside a modal. The user can only interact with the app once the check is complete. After the check finishes, the modal is removed, and the next step is shown. The currentFaceAuthStep state controls the flow. While authentication runs, the app continues in parallel, and interaction is enabled once the process completes. |
@rishabhgupta1234, we've tried to reproduce this on our side but have had no luck. Do you have minimal sample repo that can reliably reproduce the issue that you can share? |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Liveness
How is your app built?
Create React App
What browsers are you seeing the problem on?
Chrome, Firefox, Microsoft Edge
Which region are you seeing the problem in?
No response
Please describe your bug.
I am encountering an issue with FaceLivenessDetectorCore while implementing face liveness detection for users. After the face liveness process is completed, the camera light remains on, indicating that the camera is not being released properly.
It seems that FaceLivenessDetectorCore continues to access the user's camera permissions and does not release the camera resource once the face liveness process is finished.
What's the expected behaviour?
After the face liveness process is completed, the camera should be released, and the camera light should turn off.
Help us reproduce the bug!
Code Snippet
Console log output
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: