html5-qrcode
html5-qrcode copied to clipboard
Appending new video element each time
Every time I click the button to start the qr code reader, another video element gets appended beneath the existing one, hereby creating multiple video views when only one is needed. I cleared the parent element just before the video and canvas gets added.
Works well.