@tsocial/tvweb-sdk.msb 5.1.2 → 5.4.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.
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
function handleLivenessDetectionDone(result) {
|
|
124
|
-
const { frontalFaces, apiCheckPassed, steps
|
|
124
|
+
const { frontalFaces, apiCheckPassed, steps } = result;
|
|
125
125
|
const apiCheck = selectApiCheckEl.value === "true";
|
|
126
126
|
resultLivenessDetectionEl.innerHTML = "";
|
|
127
127
|
if (apiCheck === false) {
|
|
@@ -154,13 +154,6 @@
|
|
|
154
154
|
resultLivenessDetectionEl.appendChild(
|
|
155
155
|
document.createTextNode("Video:")
|
|
156
156
|
);
|
|
157
|
-
if (videoRecord.length) {
|
|
158
|
-
const videoEl = document.createElement("video");
|
|
159
|
-
videoEl.width = "200";
|
|
160
|
-
videoEl.controls = "controls";
|
|
161
|
-
videoEl.src = URL.createObjectURL(videoRecord[0]);
|
|
162
|
-
resultLivenessDetectionEl.appendChild(videoEl);
|
|
163
|
-
}
|
|
164
157
|
}, 500);
|
|
165
158
|
} else {
|
|
166
159
|
tv.destroyView();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsocial/tvweb-sdk.msb",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "TV Web SDK - The Standalone MSB SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Nha Hoang <nha.hoang@trustingsocial.com>, Son T. Ng <son.nguyen.thai@trustingsocial.com>",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tsocial/trustvision-sdk": "2.10.
|
|
27
|
-
"@tsocial/tvweb-core": "^5.
|
|
28
|
-
"@tsocial/tvweb-ui": "^5.
|
|
26
|
+
"@tsocial/trustvision-sdk": "2.10.1",
|
|
27
|
+
"@tsocial/tvweb-core": "^5.4.0",
|
|
28
|
+
"@tsocial/tvweb-ui": "^5.4.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.4.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c2aedb28f04afe4cb63281fe17fff6baaceb560a"
|
|
39
39
|
}
|