mirror of
https://github.com/yugasun/qrcode-decoder.git
synced 2026-08-12 20:27:56 +08:00
fix: clear black bg after camera capture
This commit is contained in:
@@ -306,6 +306,9 @@ class QrcodeDecoder {
|
||||
const track = this.stream.getTracks()[0];
|
||||
track.stop();
|
||||
this.stream = undefined;
|
||||
|
||||
// fix: clear black bg after camera capture
|
||||
this.videoElem.srcObject = null;
|
||||
}
|
||||
|
||||
if (this.timerCapture) {
|
||||
|
||||
Reference in New Issue
Block a user