fix: clear black bg after camera capture

This commit is contained in:
yugasun
2019-01-15 11:53:37 +08:00
parent 9633aafc01
commit 70c701a9b5
5 changed files with 7 additions and 4 deletions
+3
View File
@@ -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) {