Skip to content

Commit e0b5394

Browse files
authored
Update differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.md
1 parent 0567ed7 commit e0b5394

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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).

0 commit comments

Comments
 (0)