Demo of the Barcode Detection API for Web
Not all browsers support this API.
You can check the browser support here: https://caniuse.com/?search=BarcodeDetector%20API
The demo has been tested on Microsoft Edge on macOS monterey.
In addition, localhost or HTTPS are required to use this API.
If the browser does not support the API, the Dynamsoft Barcode Reader polyfill will be used.
Check out this repo to learn more: https://github.com/xulihang/barcode-detector-polyfill.