title: QR code scanner using HTML5-QRCODE Library
body: <p>I am using the following code to develop a qrcode scanner(source : <a href="https://github.com/mebjas/html5-qrcode" rel="nofollow noreferrer">https://github.com/mebjas/html5-qrcode</a>)</p>
  <pre><code>
              console.log('Code matched = ${decodedText}', decodedResult);
              document.getElementById(&quot;abs_name&quot;).value = decodedText;
  
              html5QrcodeScanner.clear();
  
          }
  
          function onScanFailure(error) {
              // handle scan failure, usually better to ignore and keep scanning.
  
              console.warn('Code scan error = ${error}');
          }
  
          let html5QrcodeScanner = new Html5QrcodeScanner(
              &quot;reader&quot;,
              { fps: 10, qrbox: { width: 250, height: 250 } },
      /* verbose= */ false);
  
          html5QrcodeScanner.render(onScanSuccess, onScanFailure);
  </code></pre>
  <p>Its working perfectly fine except for one thing.
  It asks for camera permissions only for the <strong>first time</strong> I open it in any device and for the next subsequent times when I open it from the same device, it remembers the camera preferences for that device, opens the camera without asking for permissions and starts scanning.
  This is not advisable when using for business purpose.</p>
  <p>I want the scanner to ask for camera permissions each and every time it is used.</p>
  <p>Please let me know if there is a way to achieve the above functionality using this HTML5-qrcode library.</p>
  <p>Thank you</p>