ngx-scanner
ngx-scanner copied to clipboard
scanner.reset() does not work if we are switching between camera lenses.
Describe the bug I have a requirement where I need to load all back cameras in a dropdown so that end-user can choose the camera which is most effective in scanning. I have multiple pages which require the same functionality. When I choose a camera and scan a barcode, ideally the camera should stop but it doesn't. However, if I don't change camera and scan as is from the default camera loaded then the scanner.reset() works.
Expected behavior scanner.reset() should stop the camera
Smartphone :
- Device: Samsung S20+
- OS: Android 11
- Browser: Chrome
- Version: 95.0.4638.50
Any help is highly appreciated.