Skip to content

Commit 3f14354

Browse files
update to internal commit 3706479b
1 parent b40caed commit 3f14354

14 files changed

+108
-40
lines changed

_includes/sidelist-programming/programming-javascript-v10.0.21.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,10 @@
11481148
barcodes via video in iOS 16.7 or 17?</a
11491149
>
11501150
</li>
1151+
<li>
1152+
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
1153+
>How to Enable Specific Barcode Formats with Your License?</a>
1154+
</li>
11511155
</ul>
11521156
</li>
11531157
<li class="category">OTHERS</li>

_includes/sidelist-programming/programming-javascript-v10.2.1000.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,10 @@
15821582
barcodes via video in iOS 16.7 or 17?</a
15831583
>
15841584
</li>
1585+
<li>
1586+
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
1587+
>How to Enable Specific Barcode Formats with Your License?</a>
1588+
</li>
15851589
</ul>
15861590
</li>
15871591
<li class="category">OTHERS</li>

_includes/sidelist-programming/programming-javascript.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,10 @@
16741674
>What are the system requirements for running the latest version of Dynamsoft Barcode Reader?</a
16751675
>
16761676
</li>
1677+
<li>
1678+
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
1679+
>How to Enable Specific Barcode Formats with Your License?</a>
1680+
</li>
16771681
</ul>
16781682
</li>
16791683
<li lang="javascript"><a href="{{ site.license_activation }}index.html" class="otherLinkColour">License Initialization</a></li>

programming-old/javascript/samples-demos/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ permalink: /programming/javascript/samples-demos/index.html
2727
</div>
2828
<div class="file"><a data-balloon-length="xlarge" data-balloon-pos="down" aria-label="Decode barcodes
2929
using images that are stored locally,
30-
whether on mobile or desktop." class="button title" target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/hello-world/hello-world.html">Read
30+
whether on mobile or desktop." class="button title" target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/hello-world/read-an-image.html">Read
3131
an Existing Image</a></div>
3232
<div class="file"><a data-balloon-length="xlarge" data-balloon-pos="down" aria-label="Decode video stream in an Angular
3333
Application from a USB-connected or built-in camera (mobile or desktop)." class="button title"

programming/javascript/faq/add-remove-beep-sound.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ Dynamsoft.DCE.Feedback.beep();
1919
**_NOTE:_** - Check the class [Feedback](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/api-reference/feedback.html#beep) for more details.
2020

2121

22-
<details>
23-
<summary><b> Version 9</b></summary>
22+
## Version 9
2423
This feature is controlled using the [whenToPlaySoundforSuccessfulRead](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/ScanSettings.html?ver=latest) property. To enable the feature, set the property to either **frame** or **unique**. To disable the feature, set it to **never**.
2524

2625
> This feature is disabled by default.
27-
</details>

programming/javascript/faq/difference-between-barcodeReader-and-barcodeScanner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ needAutoGenerateSidebar: false
99
# What is the difference between the BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?
1010

1111
[<< Back to FAQ index](index.md)
12+
1213
**_NOTE:_** - This is for version 9 or lower of barcode reader sdk
1314
No, as each offers a different functionality than the other. The `BarcodeReader` class is used to decode static images (via one of the [decode\*](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/BarcodeReader.html#decode-barcodes) methods) and does not have the ability to open the camera stream and decode barcodes directly from the video stream.
1415

programming/javascript/faq/difference-between-bestspeed-and-bestcoverage.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
`speed`, as the name suggests, prioritizes time cost over the accuracy of the results, and `coverage` is vice versa.
13+
`SpeedFirst`, as the name suggests, prioritizes time cost over the accuracy of the results, and `ReadRateFirst` is vice versa.
1414

15-
`balance` is the perfect middle ground between `speed` and `coverage`.
15+
`Balance` is the perfect middle ground between `SpeedFirst` and `ReadRateFirst`.
1616

17-
Lastly, the `single` template is optimized for interactive video scenarios, and is the default mode when using the `BarcodeScanner` class.
17+
Lastly, the `Single` template is optimized for interactive video scenarios, and is the default mode.
18+
19+
To choose the proper template that you want the SDK to utilize and learn about some of the other templates we offer, please use the [PresetTemplate](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/preset-templates.html?product=dbr&lang=javascript).
1820

1921
In terms of the individual settings, if you would like to learn of the exact breakdown between the different templates, please contact the [Dynamsoft support team](https://www.dynamsoft.com/contact/).
2022

21-
To choose the runtime settings template that you want the SDK to utilize and learn about some of the other templates we offer, please use the [updateRuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeReader.html#updateruntimesettings) method.

programming/javascript/faq/differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13+
## Version 10
14+
`updateVideoSettings` is used to update the [MediaStreamConstraints](https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints) that define most of the video information such as width, height, and the camera facingMode (i.e. front or rear camera).
15+
16+
`updateSettings` is used to update the [SimplifiedSettings](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/interfaces/simplified-capture-vision-settings.html?product=dbr&lang=javascript) interface. It updates the runtime settings with a given template object.
17+
```javascript
18+
let settings = await router.getSimplifiedSettings("ReadSingleBarcode");
19+
settings.barcodeSettings.barcodeFormatIds =
20+
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE;
21+
await router.updateSettings("ReadSingleBarcode", settings);
22+
await router.startCapturing("ReadSingleBarcode");
23+
```
24+
25+
## Version 9
26+
1327
`updateScanSettings` is used to update the [ScanSettings](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/interface/ScanSettings.html?ver=latest) interface. This can be used to configure settings such as ignoring duplicate reads, setting sound/vibration when a barcode is scanned.
1428

1529
`updateVideoSettings` is used to update the [MediaStreamConstraints](https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints) that define most of the video information such as width, height, and the camera facingMode (i.e. front or rear camera).
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: default-layout
3+
title: How to Enable Specific Barcode Formats with Your License?
4+
keywords: Dynamsoft Barcode Reader, FAQ, JavaScript, tech basic, barcode format, no license found
5+
description: When moving from a trial license to a production license, you may encounter the error `[xxx] No license found` if your enabled barcode formats don't match the formats supported by your license?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to Enable Specific Barcode Formats with Your License
10+
[<< Back to FAQ index](index.md)
11+
12+
## Problem
13+
When moving from a trial license to a production license, you may encounter the error `[xxx] No license found` if your enabled barcode formats don't match the formats supported by your license. This occurs because the SDK validates enabled formats against your license's capabilities.
14+
15+
## Solution
16+
Explicitly enable **only the barcode formats covered by your license** in your code configuration.
17+
18+
---
19+
20+
### Step-by-Step Guide
21+
22+
1. **Check Your License Coverage**
23+
Confirm which barcode formats your license supports (e.g., QR Code + 1D barcodes).
24+
25+
2. **Configure Barcode Formats**
26+
Update your code to explicitly enable **only the licensed formats**.
27+
- Example for Enabling **QR Code Only**:
28+
29+
```javascript
30+
let settings = await router.getSimplifiedSettings("ReadSingleBarcode");
31+
// Enable QR Code only
32+
settings.barcodeSettings.barcodeFormatIds =
33+
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE;
34+
await router.updateSettings("ReadSingleBarcode", settings);
35+
await router.startCapturing("ReadSingleBarcode");
36+
```
37+
38+
- Example for Enabling **Multiple Formats**:
39+
40+
Use bitwise OR (|) to combine formats.
41+
```javascript
42+
// Enable QR Code and 1D
43+
settings.barcodeSettings.barcodeFormatIds =
44+
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE | Dynamsoft.DBR.EnumBarcodeFormat.BF_ONED;
45+
```
46+
47+
4. **Verify Supported Formats**
48+
49+
View the complete list of supported barcode formats and their corresponding IDs here: [Barcode Format Documentation](https://www.dynamsoft.com/capture-vision/docs/core/enums/barcode-reader/barcode-format.html?lang=js&product=dbr)

programming/javascript/faq/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,7 @@ noTitleIndex: true
8585

8686
38. [Why isn't my webcam reading the barcode on my driver's license or ID card?](webcam-support-dense.md)
8787

88-
39. [What are the system requirements for running the latest version of Dynamsoft Barcode Reader?](system-requirement.md)
88+
39. [What are the system requirements for running the latest version of Dynamsoft Barcode Reader?](system-requirement.md)
89+
90+
40. [How to Enable Specific Barcode Formats with Your License?](enable-supported-barcode-format.md
91+
)

0 commit comments

Comments
 (0)