Using Flash or Torch with Html5-Qrcode
mebjas/html5-qrcode is a fairly used open source library for implementing QR Code or barcode scanner in a web application. There has been ask supporting torch or flash feature with the scanner. This feature is usually very well supported on native scanner apps that are available on Android or IOS. In this article I'll share how to add torch support with both end to end library (Html5QrcodeScanner) as well as the low level library (Html5Qrcode).
https://scanapp.org/blog/2022/10/30/using-flash-or-torch-with-html5-qrcode.html