You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings?
6
+
needAutoGenerateSidebar: false
7
+
---
8
+
9
+
# What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings ?
10
+
11
+
[<< Back to FAQ index](index.md)
12
+
13
+
`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.
14
+
15
+
`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).
16
+
17
+
`updateRuntimeSettings` is used to update the [RuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/interface/RuntimeSettings.html?ver=latest) interface. It updates the runtime settings with a given object or use the string `speed`, `balance`, or `coverage` to use [our preset settings for BarcodeScanner](https://www.dynamsoft.com/barcode-reader/parameters/structure-and-interfaces-of-parameters.html?ver=latest#using-runtime-settings-templates). The default setting is `speed`.
7.[Do we have to call loadWasm proactively?](call-loadWasm-proactively.html)
24
+
7.[When to use onFrameRead and when to use onUniqueRead?](use-of-onFrameRead-and-onUnduplicateRead.html)
25
25
26
-
8.[How to use initSettings/getSimplifiedSettings/updateSettings?](differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html)
26
+
8.[Do we have to call loadWasm proactively?](call-loadWasm-proactively.html)
27
27
28
-
9.[What are the different ways to customize the UI?](different-ways-to-customize-ui.html)
28
+
9.[What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings?](differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html)
29
29
30
-
10.[How to get the logs for the JavaScript SDK?](get-sdk-logs.html)
30
+
10.[What are the different ways to customize the UI?](different-ways-to-customize-ui.html)
31
31
32
-
11.[How do you upgrade to a newer version of the SDK?](upgrade-old-to-new.html)
32
+
11.[How to get the logs for the JavaScript SDK?](get-sdk-logs.html)
33
33
34
-
12.[How to change the domain binding of your product key?](change-domain-binding-of-product-key.html)
34
+
12.[How do you upgrade to a newer version of the SDK?](upgrade-old-to-new.html)
35
35
36
-
13.[When is singleFrameMode enabled?](when-singleFrameMode-is-enabled.html)
36
+
13.[How to change the domain binding of your product key?](change-domain-binding-of-product-key.html)
37
37
38
-
14.[How to get intermediate result images?](get-intermediate-result-images.html)
38
+
14.[When is singleFrameMode enabled?](when-singleFrameMode-is-enabled.html)
39
39
40
-
15.[How to read an inverted image?](read-inverted-image.html)
40
+
15.[How to get intermediate result images?](get-intermediate-result-images.html)
41
41
42
-
16.[How to read barcodes from existing files?](read-from-existing-files.html)
42
+
16.[How to read an inverted image?](read-inverted-image.html)
43
43
44
-
17.[What file/image formats are supported when reading barcodes from files in local memory?](formats-supported-for-existing-files.html)
44
+
17.[How to read barcodes from existing files?](read-from-existing-files.html)
45
45
46
-
18.[How to scan the barcode on a US Driver’s License and get the first name, last name, DOB, etc.?](scan-US-drivers-license.html)
46
+
18.[What file/image formats are supported when reading barcodes from files in local memory?](formats-supported-for-existing-files.html)
47
47
48
-
19.[How to add/remove a "beep" sound once a barcode is found?](add-remove-beep-sound.html)
48
+
19.[How to scan the barcode on a US Driver’s License and get the first name, last name, DOB, etc.?](scan-US-drivers-license.html)
49
49
50
-
20.[How do I create a NodeJS application using the SDK?](nodejs-implementation.html)
50
+
20.[How to add/remove a "beep" sound once a barcode is found?](add-remove-beep-sound.html)
51
51
52
-
21.[How to check the version of the JavaScript SDK I am currently using?](check-current-version.html)
52
+
21.[How do I create a NodeJS application using the SDK?](nodejs-implementation.html)
53
53
54
-
22.[How to stop the camera stream from opening right away after DBR-JS demo is loaded? How can you enable the camera on the click of a button?](stop-camera-to-open-right-away.html)
54
+
22.[How to check the version of the JavaScript SDK I am currently using?](check-current-version.html)
55
55
56
-
23.[What is the difference between the BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?](difference-between-barcodeReader-and-barcodeScanner.html)
56
+
23.[How to stop the camera stream from opening right away after DBR-JS demo is loaded? How can you enable the camera on the click of a button?](stop-camera-to-open-right-away.html)
57
57
58
-
24.[Why are newline characters not being rendered when displaying the barcode results in a textbox?](newline-character-not-being-rendered.html)
58
+
24.[What is the difference between the BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?](difference-between-barcodeReader-and-barcodeScanner.html)
59
59
60
-
25.[How to resolve the expected magic word error that occurs when using the JavaScript SDK?](resolve-magic-word.html)
60
+
25.[Why are newline characters not being rendered when displaying the barcode results in a textbox?](newline-character-not-being-rendered.html)
61
61
62
-
26.[What are the general troubleshooting steps if an image fails to decode with the JavaScript SDK?](general-troubleshooting-steps-for-decode-failure.html)
62
+
26.[How to resolve the expected magic word error that occurs when using the JavaScript SDK?](resolve-magic-word.html)
63
63
64
-
27.[What are the differences between the 'speed', 'coverage', 'balance', and 'single' runtime templates?](difference-between-bestspeed-and-bestcoverage.html)
64
+
27.[What are the general troubleshooting steps if an image fails to decode with the JavaScript SDK?](general-troubleshooting-steps-for-decode-failure.html)
65
65
66
-
28.[How to avoid incorrect barcode results?](avoid-incorrect-barcode-results.html)
66
+
28.[What are the differences between the 'speed', 'coverage', 'balance', and 'single' runtime templates?](difference-between-bestspeed-and-bestcoverage.html)
67
67
68
-
29.[How does license tracking work with the three standard licensing options - Per Scan, Per Device, Per Concurrent Device?](how-license-tracking-works.html)
68
+
29.[How to avoid incorrect barcode results?](avoid-incorrect-barcode-results.html)
69
69
70
-
30.[When is a new license spot taken when using a per-device licensing model?](new-license-required-per-device-licensing.html)
70
+
30.[How does license tracking work with the three standard licensing options - Per Scan, Per Device, Per Concurrent Device?](how-license-tracking-works.html)
71
71
72
-
31.[How to get rid of the delay when opening the camera?](delay-when-open-camera.html)
72
+
31.[When is a new license spot taken when using a per-device licensing model?](new-license-required-per-device-licensing.html)
73
73
74
-
32.[How can I hide the laser bar and Dynamsoft message in the default UI of the BarcodeScanner?](hide-laser-message-ui.html)
74
+
32.[How to get rid of the delay when opening the camera?](delay-when-open-camera.html)
75
75
76
-
33.[Why is the Javascript SDK not recognizing any barcodes on iOS 16.4?](ios-16-incompatible.html)
76
+
33.[How can I hide the laser bar and Dynamsoft message in the default UI of the BarcodeScanner?](hide-laser-message-ui.html)
77
77
78
-
34.[How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?](check-camera.html)
78
+
34.[Why is the Javascript SDK not recognizing any barcodes on iOS 16.4?](ios-16-incompatible.html)
79
79
80
-
35.[How do I resolve the issue of the Barcode Reader not recognizing any barcodes via video in iOS 16.7 or 17?](ios-17-readability.html)
80
+
35.[How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?](check-camera.html)
81
81
82
-
36.[How to Reduce Duplicate Scans and Optimize Scan Usage?](remove-duplicates.html)
82
+
36.[How do I resolve the issue of the Barcode Reader not recognizing any barcodes via video in iOS 16.7 or 17?](ios-17-readability.html)
Copy file name to clipboardExpand all lines: programming/javascript/faq/newline-character-not-being-rendered.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,4 @@ needAutoGenerateSidebar: false
10
10
11
11
[<< Back to FAQ index](index.md)
12
12
13
-
That is because in normal HTML, newline characters are not interpreted as they normally would, so newline characters in the barcode result will be ignored. To account for them, it's best to either wrap the element used to display the result in a `<pre>` element, or manually replace each newline character with `<br />`. Please refer to [this article](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/advanced-usage.html#account-for-newline-characters-in-the-barcode-result) for more details.
13
+
That is because in normal HTML, newline characters are not interpreted as they normally would, so newline characters in the barcode result will be ignored. To account for them, it's best to either wrap the element used to display the result in a `<pre>` element, or manually replace each newline character with `<br />`. Please refer to [this article](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#accounting-for-newline-characters-in-the-barcode-result) for more details.
Yes, the JavaScript SDK supports reading from a file in local memory. This can be achieved via the `Caputure` class.
13
+
Yes, the JavaScript SDK supports reading from a file in local memory. This can be achieved via the `BarcodeReader` class instead of the `BarcodeScanner` class.
14
14
15
15
```javascript
16
-
let router =awaitDynamsoft.CVR.CaptureVisionRouter.createInstance();
17
-
let results =awaitrouter.capture("blob:https://demo.dynamsoft.com/afb84bd2-e8cb-4b96-92b6-36dc89783692", "ReadSingleBarcode");
18
-
let count =results.items.length;
19
-
for(let i =0; i < count; i++) {
20
-
//...
21
-
}
22
-
16
+
let reader =awaitDynamsoft.DBR.BarcodeReader.createInstance();
17
+
let results =awaitreader.decode(imageSource);
23
18
```
24
19
25
-
> [this article](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/single-image-processing.html?product=dbr&lang=javascript) shows how to read barcodes from existing images and a list of supported input types.
20
+
> [this article](https://www.dynamsoft.com/barcode-reader/programming/javascript/samples-demos/helloworld-readfile.html) shows how to read barcodes from existing images and a list of supported input types.
Copy file name to clipboardExpand all lines: programming/javascript/faq/when-singleFrameMode-is-enabled.md
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,6 @@ needAutoGenerateSidebar: false
10
10
11
11
[<< Back to FAQ index](index.md)
12
12
13
-
## Verson 10
14
-
15
-
SingleFrameMode can be enabled by calling the api from the camera enhancer module. check
16
-
[singleFrameMode](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/api-reference/acquisition.html#singleframemode) for detailed information.
17
-
18
-
## Version 9
19
-
20
13
`singleFrameMode` is enable in the below two scenarios -
21
14
22
15
1. When using the library from a non-secure origin (no HTTPS).
0 commit comments