What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings ?
Version 10
updateVideoSettings
is used to update the MediaStreamConstraints that define most of the video information such as width, height, and the camera facingMode (i.e. front or rear camera).
updateSettings
is used to update the SimplifiedSettings interface. It updates the runtime settings with a given template object.
let settings = await router.getSimplifiedSettings("ReadSingleBarcode");
settings.barcodeSettings.barcodeFormatIds =
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE;
await router.updateSettings("ReadSingleBarcode", settings);
await router.startCapturing("ReadSingleBarcode");
Version 9
updateScanSettings
is used to update the ScanSettings interface. This can be used to configure settings such as ignoring duplicate reads, setting sound/vibration when a barcode is scanned.
updateVideoSettings
is used to update the MediaStreamConstraints that define most of the video information such as width, height, and the camera facingMode (i.e. front or rear camera).
updateRuntimeSettings
is used to update the RuntimeSettings 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. The default setting is speed
.