@sapui5/sap.ndc 1.118.0 → 1.119.0
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
package/src/sap/ndc/.library
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2023 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.
|
|
8
|
+
<version>1.119.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>SAPUI5 library with controls with native device capabilities.</documentation>
|
|
11
11
|
|
|
@@ -1377,6 +1377,7 @@ sap.ui.define([
|
|
|
1377
1377
|
horizontalScrolling: false,
|
|
1378
1378
|
verticalScrolling: false,
|
|
1379
1379
|
afterClose: function() {
|
|
1380
|
+
closeScannerContain();
|
|
1380
1381
|
oScanDialog.destroyContent();
|
|
1381
1382
|
oScanDialog.destroy();
|
|
1382
1383
|
oScanDialog = null;
|
|
@@ -1690,6 +1691,7 @@ sap.ui.define([
|
|
|
1690
1691
|
* @private
|
|
1691
1692
|
*/
|
|
1692
1693
|
function decodeWithZXingCPP() {
|
|
1694
|
+
Log.info("BarcodeScanner.decodeWithZXingCPP: start to decode");
|
|
1693
1695
|
if (!oBarcodeVideoDOM || !oBarcodeVideoDOM.srcObject) {
|
|
1694
1696
|
return;
|
|
1695
1697
|
}
|
|
@@ -2101,11 +2103,15 @@ sap.ui.define([
|
|
|
2101
2103
|
if (oBarcodeScannerUIContainer) {
|
|
2102
2104
|
oBarcodeScannerUIContainer.destroy();
|
|
2103
2105
|
}
|
|
2106
|
+
// oStream and oBarcodeVideoDOM.srcObject point to the same video stream, set them to undefined when closing scan screen
|
|
2104
2107
|
if (oStream) {
|
|
2105
2108
|
var videoTrack = typeof oStream.stop === "function" ? oStream : oStream.getTracks()[0];
|
|
2106
2109
|
videoTrack.stop();
|
|
2107
2110
|
oStream = undefined;
|
|
2108
2111
|
}
|
|
2112
|
+
if (oBarcodeVideoDOM && oBarcodeVideoDOM.srcObject) {
|
|
2113
|
+
oBarcodeVideoDOM.srcObject = undefined;
|
|
2114
|
+
}
|
|
2109
2115
|
}
|
|
2110
2116
|
|
|
2111
2117
|
function zebraEBScanEnable() {
|
|
@@ -2676,7 +2682,6 @@ sap.ui.define([
|
|
|
2676
2682
|
* @static
|
|
2677
2683
|
*/
|
|
2678
2684
|
BarcodeScanner.closeScanDialog = function () {
|
|
2679
|
-
closeScannerContain();
|
|
2680
2685
|
if (oScanDialog) {
|
|
2681
2686
|
oScanDialog.close();
|
|
2682
2687
|
oModel.setProperty("/scanDialog/scanningStartTime", 0);
|