fix: clear black bg after camera capture

pull/2/head v0.1.1
yugasun 7 years ago
parent 9633aafc01
commit 70c701a9b5

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 935 B

After

Width:  |  Height:  |  Size: 3.4 KiB

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
{
"name": "qrcode-decoder",
"version": "0.1.0",
"version": "0.1.1",
"description": "Tool for decoding qrcode",
"main": "dist/index.js",
"jsnext:main": "dist/index.esm.js",

@ -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) {

Loading…
Cancel
Save