Problem with having a webcam work consistently using the QR code element

I saw in another post that I can access the webcam using a QR code element and capture an image there. However, I am having a problem consistently activating the webcam. It works fine the first time, but when the page is refreshed or, in my case, when a modal is closed and reopened and I try to access the webcam again, it fails and doesn’t show any image. Is there a known bug with the QR code element?

Specifically, I am getting this error: DOMException - The play() request was interrupted  |  Blog  |  Chrome for Developers

Thank you!

hi @Atlas in case you’re still looking for QR code + barcode functionality, we built and released a free component on the new WeWeb marketplace that scans both QR and barcodes.

https://marketplace.weweb.io/projects/18ecff92-25f0-4da3-8818-b52ca9ee38fd/

1 Like