ngx-scanner
ngx-scanner copied to clipboard
Angular 10 compatibility
Hi, i'm trying to implement this library into my angular 10 project but no video displaying. It found my pc camera device, turn on the camera light and start recording video (the page tab's red point appear on chrome) but no video is displaying.
What i'm doing wrong?
This is my package.json
"@angular/animations": "^10.2.5", "@angular/cdk": "^10.2.7", "@angular/common": "~10.2.0", "@angular/compiler": "~10.2.0", "@angular/core": "~10.2.0", "@zxing/browser": "0.0.5", "@zxing/library": "^0.18.3", "@zxing/ngx-scanner": "^3.1.3"
and this is the code on my component.html
<zxing-scanner (scanSuccess)="handleQrCodeResult($event)">
I've tried with start, autostart, cameraFound, ecc. properties but nothing happend. I found tutorials on internet but not working for me.
Thanks for support.
Did you try closing your <zxing-scanner></zxing-scanner> like the wiki shows?