Skip to content

Commit

Permalink
Merge pull request #550 from mehrzadrezvani/bugfix/remove-video-eleme…
Browse files Browse the repository at this point in the history
…nt-on-destroy
  • Loading branch information
werthdavid authored Feb 22, 2024
2 parents b832a3e + a752c5f commit 88b2bff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/zxing-scanner/src/lib/zxing-scanner.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ export class ZXingScannerComponent implements OnInit, OnDestroy {
*/
ngOnDestroy(): void {
this.reset();
BrowserCodeReader.cleanVideoSource(this.previewElemRef.nativeElement);
BrowserMultiFormatContinuousReader.releaseAllStreams();
}

Expand Down

0 comments on commit 88b2bff

Please sign in to comment.