@tsocial/tvweb-sdk 5.2.0 → 5.3.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.
|
@@ -325,7 +325,11 @@
|
|
|
325
325
|
apiUrl: inputApiUrl.value,
|
|
326
326
|
onLivenessDetectionDone: handleLivenessDetectionDone,
|
|
327
327
|
customStepTimeConstraints: JSON.parse(customStepTimeConstraintsEl.value),
|
|
328
|
-
|
|
328
|
+
captureFrameSettings: {
|
|
329
|
+
enable: true,
|
|
330
|
+
framesIntervalTime: 180,
|
|
331
|
+
framesBatchLength: 0,
|
|
332
|
+
},
|
|
329
333
|
onError: (e) => {
|
|
330
334
|
livenessLoadingEl.style.display = "none";
|
|
331
335
|
startLivenessBtn.disabled = false;
|
|
@@ -373,7 +377,7 @@
|
|
|
373
377
|
}
|
|
374
378
|
|
|
375
379
|
function handleLivenessDetectionDone(result) {
|
|
376
|
-
const { frontalFaces, apiCheckPassed, steps
|
|
380
|
+
const { frontalFaces, apiCheckPassed, steps } = result;
|
|
377
381
|
const apiCheck = selectApiCheckEl.value === "true";
|
|
378
382
|
resultLivenessDetectionEl.innerHTML = "";
|
|
379
383
|
|
|
@@ -407,13 +411,6 @@
|
|
|
407
411
|
resultLivenessDetectionEl.appendChild(
|
|
408
412
|
document.createTextNode("Video:")
|
|
409
413
|
);
|
|
410
|
-
if (videoRecord.length) {
|
|
411
|
-
const videoEl = document.createElement("video");
|
|
412
|
-
videoEl.width = "200";
|
|
413
|
-
videoEl.controls = "controls";
|
|
414
|
-
videoEl.src = URL.createObjectURL(videoRecord[0]);
|
|
415
|
-
resultLivenessDetectionEl.appendChild(videoEl);
|
|
416
|
-
}
|
|
417
414
|
} else {
|
|
418
415
|
livenessLoadingEl.style.display = "none";
|
|
419
416
|
startLivenessBtn.disabled = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsocial/tvweb-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "TV Web SDK - The Standalone SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Nha Hoang <nha.hoang@trustingsocial.com>",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@tsocial/trustvision-sdk": "2.10.1",
|
|
27
|
-
"@tsocial/tvweb-core": "^5.
|
|
28
|
-
"@tsocial/tvweb-ui": "^5.
|
|
27
|
+
"@tsocial/tvweb-core": "^5.3.0",
|
|
28
|
+
"@tsocial/tvweb-ui": "^5.3.0",
|
|
29
29
|
"http-server": "0.12.3",
|
|
30
30
|
"invariant": "^2.2.4",
|
|
31
31
|
"react": "^16.14.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"styled-components": "^5.2.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tsocial/tvweb-builder": "^5.
|
|
37
|
+
"@tsocial/tvweb-builder": "^5.3.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "35e91078e55d2bfa3921e32c1fb614ce3eedeaa7"
|
|
40
40
|
}
|