Skip to content

Commit e607095

Browse files
committed
rollback
1 parent 3f15e5a commit e607095

40 files changed

+924
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default-layout
3+
title: How to add/remove a "beep" sound once a barcode is found?
4+
keywords: Dynamsoft Barcode Reader, FAQ, JavaScript, tech basic, beep, sound
5+
description: How to add/remove a "beep" sound once a barcode is found?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to add/remove a "beep" sound once a barcode is found?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
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**.
14+
15+
> This feature is disabled by default.
85 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default-layout
3+
title: How to avoid incorrect barcode results?
4+
keywords: Dynamsoft Barcode Reader, FAQ, JavaScript, Troubleshooting / User Cases, avoid incorrect barcode results
5+
description: How to avoid incorrect barcode results?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to avoid incorrect barcode results?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
- One method is to raise the value of [minResultConfidence](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minresultconfidence) of the `RuntimeSettings` to a value of 50 or higher. It is set to 30 by default.
14+
- If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the [minBarcodeTextLength](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minbarcodetextlength) property of the `RuntimeSettings`, the SDK can ignore results that are consistently coming out shorter than expected.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: default-layout
3+
title: Do we have to call loadWasm proactively?
4+
keywords: Dynamsoft Barcode Reader, FAQ, tech basic, loadWasm
5+
description: Do we have to call loadWasm proactively?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# Do we have to call loadWasm proactively?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
No, the method is internally called when `createInstance` is called so there is no need to explicitly call it. However, if you would like to save some time during the instance creation, you can choose to manually call the method as soon as the page is loaded rather than letting it load on the instance creation. This can help avoid unnecessary waiting time when the library is invoked.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: default-layout
3+
title: How to change the domain binding of your product key?
4+
keywords: Dynamsoft Barcode Reader, FAQ, JavaScript, tech basic, domain binding, product key
5+
description: How to change the domain binding of your product key?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to change the domain binding of your product key?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
In order to change the domain binding of the handshake code that includes the license item in question please follow the below steps -
14+
1. You will first need to log into the [customer portal](https://www.dynamsoft.com/customer/index).
15+
2. After login, please navigate go to [projects link](https://www.dynamsoft.com/lts/index.html#/handshakeCodes)
16+
3. Find the project that you want to change the domain binding.
17+
4. Click on the "Configure" button.
18+
5. Scroll down and find "Optional Settings" -> edit "Bind Website Domain" field to change your domain binding.
19+
<img src="../assets/domain_binding.jpg" alt="domain_binding" />
20+
> Please note that a single project can contain multiple license items. If you wish to bind a single license item to a certain domain, then you will need to make sure that license item is the only item in the associated project. First, remove the license item from its current project. Afterwards, create a new project and then open its configuration page. Then, move the license item to the new project and finally edit the binding info of the new project.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: default-layout
3+
title: How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?
4+
keywords: JavaScript, JS, camera, permission
5+
description: How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Starting from version 9.6.10+, you can utilize the [testCameraAccess](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/BarcodeScanner.html#testcameraaccess) method to check the camera status programmatically.
14+
15+
For versions older than 9.6.10, you can check the status using a try-catch block as shown below:
16+
17+
```javascript
18+
try {
19+
await scanner.open(); // or 'await scanner.show()'
20+
} catch(e) {
21+
if(e.name === "NotAllowedError") {
22+
// it means the user denied permission
23+
// add your code here to guide users to grant permission
24+
}
25+
}
26+
```
27+
28+
In case permission is denied, you can prompt the user (using an alert or something similar) to manually grant permission for your website to access the camera via the site settings.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: default-layout
3+
title: How to check the version of the JS SDK I am currently using?
4+
keywords: Dynamsoft Barcode Reader, FAQ, tech basic, check version, current version
5+
description: How to check the version of the JS SDK I am currently using?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to check the version of the JS SDK I am currently using?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
There are multiple ways to check the version currently being used -
14+
15+
- The first way is to use the [version API](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/InitializationControl.html?ver=latest#version). Using this API in the browser console should print out the version of the library being used by the web app.
16+
- If you are using the library via npm or yarn, then you can check the version of the package via
17+
18+
```bash
19+
npm –v dynamsoft-javascript-barcode
20+
```
21+
22+
- If you are including the library via the CDN link, then the version number should be mentioned in that reference link.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: default-layout
3+
title: How to get rid of the delay when opening the camera?
4+
keywords: Dynamsoft Barcode Reader, FAQ, delay,camera,loadwasm
5+
description: How to get rid of the delay when opening the camera?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to get rid of the delay when opening the camera?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
14+
## 1. Invoke loadWasm in advance
15+
16+
```javascript
17+
Dynamsoft.DBR.BarcodeReader.loadWasm();
18+
```
19+
20+
## 2. Pre-open the camera in advance
21+
22+
Run the following code before calling `createInstance`.
23+
```
24+
navigator.mediaDevices.getUserMedia({video: true}).then(mediaStream=>{
25+
mediaStream.getTracks().forEach((track) => {
26+
track.stop();
27+
});
28+
}, err=>{});
29+
```
30+
31+
## 3. Skip Camera inspection(use default camera)
32+
33+
```javascript
34+
scanner.ifSkipCameraInspection = true;
35+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default-layout
3+
title: What is the difference between BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?
4+
keywords: Dynamsoft Barcode Reader, FAQ, tech basic, barcodeReader, barcodeScanner
5+
description: What is the difference between BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# What is the difference between the BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
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.
14+
15+
The `BarcodeScanner` class on the other hand has the ability to decode barcodes directly from a video input, but it can also capture a still image using the camera when `singleFrameMode` is toggled.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
layout: default-layout
3+
title: What are the differences between the 'speed', 'coverage', 'balance, and 'single' runtime templates?
4+
keywords: Dynamsoft Barcode Reader, FAQ, Troubleshooting / User Cases, speed, coverage
5+
description: What are the differences between the 'speed', 'coverage', 'balance, and 'single' runtime templates?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# What are the differences between the 'speed', 'coverage', 'balance, and 'single' runtime templates?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
`speed`, as the name suggests, prioritizes time cost over the accuracy of the results, and `coverage` is vice versa.
14+
15+
`balance` is the perfect middle ground between `speed` and `coverage`.
16+
17+
Lastly, the `single` template is optimized for interactive video scenarios, and is the default mode when using the `BarcodeScanner` class.
18+
19+
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/).
20+
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.

0 commit comments

Comments
 (0)