Skip to content

Commit 315d78e

Browse files
authored
Merge pull request #11 from Dynamsoft/_dev
Dev
2 parents 7025031 + 0f07be3 commit 315d78e

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

1.hello-world/13.minimum-code-es6.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
1919
<button id="btn-show-scanner">Show Barcode Scanner</button>
2020
<script type="module">
21-
/** LICENSE ALERT - README
21+
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.mjs';
22+
/** LICENSE ALERT - README
2223
*
2324
* The library requires a license to work.
2425
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
@@ -28,20 +29,18 @@ <h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
2829

2930
/* When using your own license, uncomment the following line and specify your license. */
3031

31-
// Dynamsoft.DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
32+
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
3233

3334
/** LICENSE ALERT - THE END */
34-
import { BarcodeRender, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.mjs';
3535

3636
// DBR.productKeys = "PRODUCT-KEYS";
37-
38-
BarcodeRender.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
3937

38+
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
4039

4140
let pScanner = null;
4241
document.getElementById('btn-show-scanner').addEventListener('click', async () => {
4342
try {
44-
const scanner = await (pScanner = pScanner || Dynamsoft.DBR.BarcodeScanner.createInstance());
43+
const scanner = await (pScanner = pScanner || BarcodeScanner.createInstance());
4544
/*
4645
* onFrameRead is triggered after the library finishes reading a frame.
4746
* There can be one or multiple barcodes on each frame.

1.hello-world/3.read-video-angular/src/app/dbr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BarcodeReader } from 'dynamsoft-javascript-barcode';
1010

1111
/* When using your own license, uncomment the following line and specify your license. */
1212

13-
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
13+
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1414

1515
/** LICENSE ALERT - THE END */
1616

1.hello-world/5.read-video-vue/src/dbr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BarcodeReader } from "dynamsoft-javascript-barcode";
1010

1111
/* When using your own license, uncomment the following line and specify your license. */
1212

13-
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
13+
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1414

1515
/** LICENSE ALERT - THE END */
1616

1.hello-world/6.read-video-vue3/src/dbr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BarcodeReader } from "dynamsoft-javascript-barcode";
1010

1111
/* When using your own license, uncomment the following line and specify your license. */
1212

13-
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
13+
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1414

1515
/** LICENSE ALERT - THE END */
1616

1.hello-world/7.read-video-nextjs/dbr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BarcodeReader } from "dynamsoft-javascript-barcode";
1010

1111
/* When using your own license, uncomment the following line and specify your license. */
1212

13-
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
13+
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1414

1515
/** LICENSE ALERT - THE END */
1616

1.hello-world/8.read-video-nuxtjs/dbr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BarcodeReader } from "dynamsoft-javascript-barcode";
1010

1111
/* When using your own license, uncomment the following line and specify your license. */
1212

13-
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
13+
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1414

1515
/** LICENSE ALERT - THE END */
1616

0 commit comments

Comments
 (0)