Skip to content

Commit 8826a67

Browse files
committed
rename 'destroy' to 'destroyContext'; remove 'bPlaySoundOnSuccessfulRead'
1 parent 7834d1f commit 8826a67

17 files changed

Lines changed: 22 additions & 20 deletions

File tree

1.hello-world/2.read-an-image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h1 style="font-size: 1.5em;">Read Barcode from Images</h1>
7575

7676
// show image
7777
divCvsContainer.innerHTML = '';
78-
divCvsContainer.appendChild(reader.oriCanvas);
78+
divCvsContainer.appendChild(reader.getOriginalImageInACanvas());
7979

8080
// show results
8181
divResults.appendChild(createEl('h3', file.name + ": "));

1.hello-world/3.read-video-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@angular/platform-browser-dynamic": "~11.2.5",
2121
"@angular/router": "~11.2.5",
2222
"dynamsoft-javascript-barcode": "8.8.7",
23-
"keillion-dynamsoft-javascript-barcode": "0.20220318155126.0",
23+
"keillion-dynamsoft-javascript-barcode": "0.20220321180719.0",
2424
"rxjs": "~6.6.0",
2525
"tslib": "^2.0.0",
2626
"zone.js": "~0.11.3"

1.hello-world/3.read-video-angular/src/app/barcode-scanner/barcode-scanner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class VideoDecodeComponent implements OnInit {
2727
}
2828
async ngOnDestroy() {
2929
if (this.pScanner) {
30-
(await this.pScanner).destroy();
30+
(await this.pScanner).destroyContext();
3131
console.log('BarcodeScanner Component Unmount');
3232
}
3333
}

1.hello-world/3.read-video-angular/src/app/img-decode/img-decode.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class ImgDecodeComponent implements OnInit {
2525

2626
async ngOnDestroy() {
2727
if (this.pReader) {
28-
(await this.pReader).destroy();
28+
(await this.pReader).destroyContext();
2929
console.log('ImgDecode Component Unmount');
3030
}
3131
}

1.hello-world/4.read-video-react/src/components/ImgDecode/ImgDecode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class ImgDecode extends Component {
2222

2323
async componentWillUnmount() {
2424
if (this.pReader) {
25-
(await this.pReader).destroy();
25+
(await this.pReader).destroyContext();
2626
console.log('ImgDecode Component Unmount');
2727
}
2828
}

1.hello-world/4.read-video-react/src/components/VideoDecode/VideoDecode.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.hello-world/5.read-video-vue/src/components/ImgDecode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
},
2727
async beforeDestroy() {
2828
if (this.pReader) {
29-
(await this.pReader).destroy();
29+
(await this.pReader).destroyContext();
3030
console.log('ImgDecode Component Unmount');
3131
}
3232
},

1.hello-world/5.read-video-vue/src/components/VideoDecode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default {
109109
},
110110
async beforeDestroy() {
111111
if (this.pScanner) {
112-
(await this.pScanner).destroy();
112+
(await this.pScanner).destroyContext();
113113
console.log("BarcodeScanner Component Unmount");
114114
}
115115
},

1.hello-world/6.read-video-vue3/src/components/ImgDecode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
}
2424
onBeforeUnmount(async () => {
2525
if (pReader.value) {
26-
(await pReader.value).destroy();
26+
(await pReader.value).destroyContext();
2727
console.log('ImgDecode Component Unmount');
2828
}
2929
})

1.hello-world/6.read-video-vue3/src/components/VideoDecode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default {
109109
});
110110
onBeforeUnmount(async () => {
111111
if (pScanner.value) {
112-
(await pScanner.value).destroy();
112+
(await pScanner.value).destroyContext();
113113
console.log('BarcodeScanner Component Unmount');
114114
}
115115
});

0 commit comments

Comments
 (0)