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

Angular 10 compatibility

Open Arcio93 opened this issue 3 years ago • 1 comments

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.

Arcio93 avatar Apr 28 '22 08:04 Arcio93

Did you try closing your <zxing-scanner></zxing-scanner> like the wiki shows?

GitSkelly avatar May 04 '22 16:05 GitSkelly