Turn off camera when not visible
In reset-password-verify, the camera does not turn off when the user toggles the camera or when the backup code is accepted and the page navigates to the next step.
- I added a function called
stopStreamedVideoin reset-password-verify.component.ts that successfully turns the camera off.
- When added to toggle scan, you can turn it off but not back on because stopStreamed video sets
- There is no logic to turn off the camera when the user is routed to another part of the app.