ngx-scanner icon indicating copy to clipboard operation
ngx-scanner copied to clipboard

Could we only limit camera to use back camera across all mobile devices (apple, android etc)

Open northstar17 opened this issue 4 years ago • 1 comments

Back camera not being used as default

This is not a expected behavior for this lib, it just opens the first available camera.

Originally posted by @odahcam in https://github.com/zxing-js/ngx-scanner/issues/191#issuecomment-498009363

Hi @odahcam may i know if there is a way to only pick back camera when using the scanner across all devices

northstar17 avatar Sep 30 '21 05:09 northstar17

Hi @northstar17,

I am currently allowing only back camera using navigator. mediaDevices API. I referenced these issues #329 , #247 and #365 for the same.

shreya-sawardekar avatar Oct 20 '21 10:10 shreya-sawardekar