@sapui5/sap.ndc 1.108.19 → 1.108.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ndc",
3
- "version": "1.108.19",
3
+ "version": "1.108.21",
4
4
  "description": "SAPUI5 Library sap.ndc",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -5,7 +5,7 @@
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>SAPUI5
7
7
  * (c) Copyright 2009-2022 SAP SE. All rights reserved.</copyright>
8
- <version>1.108.19</version>
8
+ <version>1.108.21</version>
9
9
 
10
10
  <documentation>SAPUI5 library with controls with native device capabilities.</documentation>
11
11
 
@@ -884,6 +884,7 @@ sap.ui.define([
884
884
  enabled: false,
885
885
  press: function() {
886
886
  oScanDialog.getModel().setProperty("/isNoScanner", false);
887
+ closeScannerContain();
887
888
  openBarcodeInputDialog();
888
889
  }
889
890
  }),
@@ -1064,6 +1065,7 @@ sap.ui.define([
1064
1065
  * @private
1065
1066
  */
1066
1067
  function decodeWithZXingCPP() {
1068
+ Log.info("BarcodeScanner.decodeWithZXingCPP: start to decode");
1067
1069
  if (!oBarcodeVideoDOM || !oBarcodeVideoDOM.srcObject) {
1068
1070
  return;
1069
1071
  }
@@ -1278,11 +1280,15 @@ sap.ui.define([
1278
1280
  }
1279
1281
 
1280
1282
  function closeScannerContain() {
1283
+ // oStream and oBarcodeVideoDOM.srcObject point to the same video stream, set them to undefined when closing scan screen
1281
1284
  if (oStream) {
1282
1285
  var videoTrack = typeof oStream.stop === "function" ? oStream : oStream.getTracks()[0];
1283
1286
  videoTrack.stop();
1284
1287
  oStream = undefined;
1285
1288
  }
1289
+ if (oBarcodeVideoDOM && oBarcodeVideoDOM.srcObject) {
1290
+ oBarcodeVideoDOM.srcObject = undefined;
1291
+ }
1286
1292
  }
1287
1293
 
1288
1294
  function zebraEBScanEnable() {
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  ],
33
33
  elements: [],
34
34
  noLibraryCSS: true,
35
- version: "1.108.19"
35
+ version: "1.108.21"
36
36
  });
37
37
 
38
38
  return thisLib;