@tsocial/tvweb-sdk.vib 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.
@@ -329,7 +329,11 @@
|
|
329
329
|
apiUrl: inputApiUrl.value,
|
330
330
|
onLivenessDetectionDone: handleLivenessDetectionDone,
|
331
331
|
customStepTimeConstraints: JSON.parse(customStepTimeConstraintsEl.value),
|
332
|
-
|
332
|
+
captureFrameSettings: {
|
333
|
+
enable: true,
|
334
|
+
framesIntervalTime: 180,
|
335
|
+
framesBatchLength: 0,
|
336
|
+
},
|
333
337
|
onError: (e) => {
|
334
338
|
livenessLoadingEl.style.display = "none";
|
335
339
|
startLivenessBtn.disabled = false;
|
@@ -377,7 +381,7 @@
|
|
377
381
|
}
|
378
382
|
|
379
383
|
function handleLivenessDetectionDone(result) {
|
380
|
-
const { frontalFaces, apiCheckPassed, steps
|
384
|
+
const { frontalFaces, apiCheckPassed, steps } = result;
|
381
385
|
const apiCheck = selectApiCheckEl.value === "true";
|
382
386
|
resultLivenessDetectionEl.innerHTML = "";
|
383
387
|
|
@@ -411,13 +415,6 @@
|
|
411
415
|
resultLivenessDetectionEl.appendChild(
|
412
416
|
document.createTextNode("Video:")
|
413
417
|
);
|
414
|
-
if (videoRecord.length) {
|
415
|
-
const videoEl = document.createElement("video");
|
416
|
-
videoEl.width = "200";
|
417
|
-
videoEl.controls = "controls";
|
418
|
-
videoEl.src = URL.createObjectURL(videoRecord[0]);
|
419
|
-
resultLivenessDetectionEl.appendChild(videoEl);
|
420
|
-
}
|
421
418
|
} else {
|
422
419
|
livenessLoadingEl.style.display = "none";
|
423
420
|
startLivenessBtn.disabled = false;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tsocial/tvweb-sdk.vib",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.3.0",
|
4
4
|
"description": "TV Web SDK - The Standalone VIB SDK",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "Nha Hoang <nha.hoang@trustingsocial.com>, Son T. Ng <son.nguyen.thai@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
|
"invariant": "^2.2.4",
|
30
30
|
"react": "^16.14.0",
|
31
31
|
"react-app-polyfill": "^2.0.0",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"styled-components": "^5.2.1"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@tsocial/tvweb-builder": "^5.
|
36
|
+
"@tsocial/tvweb-builder": "^5.3.0"
|
37
37
|
},
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "35e91078e55d2bfa3921e32c1fb614ce3eedeaa7"
|
39
39
|
}
|