Skip to content

Commit f541098

Browse files
committed
Added 11.9.3
1 parent 8686ea9 commit f541098

9 files changed

+27
-29
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Acuant JavaScript Web SDK v11.9.2
1+
# Acuant JavaScript Web SDK v11.9.3
22

3-
**December 2023**
3+
**February 2024**
44

55
See [https://github.com/Acuant/JavascriptWebSDKV11/releases](https://github.com/Acuant/JavascriptWebSDKV11/releases) for release notes.
66

@@ -805,7 +805,7 @@ See the single worker model in [Initialize and Start the SDK](#initialize-and-st
805805
806806
1. Some base model iPhones struggle to focus at close distances when running iOS 17.*.
807807
808-
The minimum focus distance for many iPhone cameras was increased in iOS 17 and has resulted in a diminished ability for users to meet both the dpi and sharpness constraints required to capture a good image. However, iOS 17 also exposed the ability to use WebRTC to perform optical zoom on iPhone devices that support it. With 11.9.2 the SDK applies a small optical zoom on affected devices to enable capturing a sharp image without sacrificing dpi.
808+
The minimum focus distance for many iPhone cameras was increased in iOS 17 and has resulted in a diminished ability for users to meet both the dpi and sharpness constraints required to capture a good image. However, iOS 17 also exposed the ability to use WebRTC to perform optical zoom on iPhone devices that support it. With 11.9.3 the SDK applies a small optical zoom on devices running iOS 17 to enable capturing a sharp image without sacrificing dpi.
809809
810810
1. iPhone 13 Pro, 13 Pro Max, 14 Pro, and 14 Pro Max struggle to focus at close distances when running iOS 16.0 through 16.3.
811811

app/index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
width: 100%;
100100
height: 100%;
101101
}
102-
103102

104103
.fit-screen {
105104
max-width: 100%;
@@ -668,4 +667,18 @@ <h3 id="acuant-modal-text"></h3>
668667
<script async src="/webSdk/html5-qrcode.min.js"></script>
669668
<script async src="/webSdk/imageMagick.umd.js"></script>
670669
<script async type="module" src="/webSdk/imageMagick.mjs"></script>
670+
671+
<!--
672+
673+
const acuantConfig = {
674+
path: "/wasm/webSdk/",
675+
jpegQuality: 1.0 //strongly advised not to modify (can be left out will default to 1.0)
676+
}
677+
</script>
678+
<script src="/wasm/Credential.js"></script>
679+
<script async src="/wasm/webSdk/AcuantJavascriptWebSdk.min.js" charset="utf-8"></script>
680+
<script async src="/wasm/webSdk/AcuantCamera.min.js" charset="utf-8"></script>
681+
<script async src="/wasm/webSdk/AcuantPassiveLiveness.min.js" charset="utf-8"></script>
682+
-->
683+
671684
</html>

webSdk/AcuantCamera.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -798,15 +798,15 @@ var AcuantCamera = (() => {
798798
}).finally(() => {
799799
if (isSamsungNote10OrS10OrNewer()) {
800800
userConfig.primaryConstraints.video.zoom = 2.0;
801-
} else if (isDeviceAffectedByIOS17Issue()) {
801+
} else if (isiOS17()) {
802802
userConfig.primaryConstraints.video.zoom = 1.6;
803803
}
804804
startCamera(userConfig.primaryConstraints);
805805
});
806806
} else {
807807
if (isSamsungNote10OrS10OrNewer()) {
808808
userConfig.primaryConstraints.video.zoom = 2.0;
809-
} else if (isDeviceAffectedByIOS17Issue()) {
809+
} else if (isiOS17()) {
810810
userConfig.primaryConstraints.video.zoom = 1.6;
811811
}
812812
startCamera(userConfig.primaryConstraints);
@@ -1048,29 +1048,14 @@ var AcuantCamera = (() => {
10481048

10491049
function isiOS164Plus() {
10501050
let ver = iOSversion();
1051-
return ver && ver != -1 && ver.length >= 1 && ver[0] >= 16 && ver [1] >= 4;
1051+
return ver && ver != -1 && ver.length >= 1 && ver[0] == 16 && ver [1] >= 4;
10521052
}
10531053

10541054
function isiOS17() {
10551055
let ver = iOSversion();
10561056
return ver && ver != -1 && ver.length >= 1 && ver[0] >= 17;
10571057
}
10581058

1059-
function isDeviceAffectedByIOS17Issue() {
1060-
if (isiOS17()) {
1061-
let dims = [screen.width, screen.height];
1062-
let long = Math.max(...dims);
1063-
let short = Math.min(...dims);
1064-
if (long == 852 && short == 393) { //15
1065-
return true;
1066-
}
1067-
if (long == 844 && short == 390) { //14, 12, 13
1068-
return true;
1069-
}
1070-
}
1071-
return false;
1072-
}
1073-
10741059
function isDeviceAffectedByIOS16Issue() {
10751060
let decodedCookie = decodeURIComponent(document.cookie);
10761061
if (decodedCookie.includes('AcuantForceRegularCapture=true')) {

webSdk/AcuantCamera.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webSdk/AcuantImageService.wasm

100755100644
File mode changed.

webSdk/AcuantInitializerService.wasm

100755100644
File mode changed.

webSdk/AcuantJavascriptWebSdk.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webSdk/AcuantMetricsService.wasm

100755100644
File mode changed.

webSdk/AcuantPassiveLiveness.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)